From 29638f2f4011062a9df1600e35b9496491d65c90 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 16 Jan 2022 20:48:11 +0100 Subject: [PATCH] Fix license-check --- php-cs/check-license.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/php-cs/check-license.sh b/php-cs/check-license.sh index e381cb4..409ec7b 100755 --- a/php-cs/check-license.sh +++ b/php-cs/check-license.sh @@ -16,6 +16,9 @@ exitVal=0 printf "\n" for file in "${files[@]}"; do + if [ ! -f "$file" ]; then + continue + fi php_license_md5=$(head -n "$php_template_rows" "$file" | md5sum) [[ "$php_template_md5" != "$php_license_md5" ]] && printf " - %s\n" "$file" && exitVal=1 done