diff --git a/check_license_exists.sh b/check_license_exists.sh index 7aeebf85..4b009c3a 100755 --- a/check_license_exists.sh +++ b/check_license_exists.sh @@ -44,9 +44,12 @@ cd "$git_root" for x in LICENSE LICENSE.txt; do if [ -s "$x" ]; then echo "OK: $x file found" - break + exit 0 elif [ -f "$x" ]; then echo "WARNING: $x file found but it is empty! " exit 1 fi done + +echo 'LICENSE file not found!' +exit 1