diff --git a/scripts/pre-commit.hook b/scripts/pre-commit.hook index 3b7e43723..795c04ae8 100755 --- a/scripts/pre-commit.hook +++ b/scripts/pre-commit.hook @@ -67,8 +67,10 @@ for FILE in $FILES; do fi done -echo "Following files need to be cleaned up:" -echo "${FILES[*]}" +if [ ! -z "${FILES[*]}" ]; then + echo "Following files need to be cleaned up:" + echo "${FILES[*]}" +fi # Prevent unsafe functions root=$(git rev-parse --show-toplevel)