mirror of
https://github.com/elastic/logstash.git
synced 2025-04-19 04:15:23 -04:00
Do not pipe Git output into a pager. (#17442)
This commit is contained in:
parent
e5bebcea17
commit
4b88773726
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ changed_files=$(git diff --name-only $previous_commit)
|
|||
if [[ -n "$changed_files" ]] && [[ -z "$(echo "$changed_files" | grep -vE "$1")" ]]; then
|
||||
echo "All files compared to the previous commit [$previous_commit] match the specified regex: [$1]"
|
||||
echo "Files changed:"
|
||||
git diff --name-only HEAD^
|
||||
git --no-pager diff --name-only HEAD^
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue