diff options
-rwxr-xr-x | tasks/unlinked-images.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/unlinked-images.sh b/tasks/unlinked-images.sh index a210cc48..2f12d611 100755 --- a/tasks/unlinked-images.sh +++ b/tasks/unlinked-images.sh @@ -7,7 +7,7 @@ if [[ -z "$1" ]]; then exit 1 fi -for FILE in $(git ls-files ./"$1"/*.png ./"$1"/**/*.gif ./"$1"/**/*.jpg); do +for FILE in $(git ls-files ./"$1"/*.png ./"$1"/*.gif ./"$1"/*.jpg); do if ! git grep "$(basename "$FILE")" > /dev/null; then echo "Unlinked file: $FILE"; unlinked_files+=1; fi done |