Check if $files is empty, don't try to execute it (#12651)
This commit is contained in:
parent
6d431c3fc3
commit
f51a3738aa
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ if [ "$1" = "--changed" ]; then
|
|||
echo "================================================="
|
||||
echo "FILES CHANGED (git diff upstream/dev... --name-only)"
|
||||
echo "================================================="
|
||||
if $files >/dev/null; then
|
||||
if [ -z "$files" ] ; then
|
||||
echo "No python file changed"
|
||||
exit
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue