diff options
author | Lee Tickett <lee@tickett.net> | 2022-07-06 10:39:38 +0300 |
---|---|---|
committer | Lee Tickett <lee@tickett.net> | 2022-07-06 10:39:38 +0300 |
commit | 3f0940c57d1c936da5b0a39448b6e2e0fcb7067a (patch) | |
tree | d3575d0c335bfbd832d32277f4b3e195fa6e16cc | |
parent | fedb6378a3c92274ba3b6031df0d34455594e4cc (diff) |
Remove superfluous wildcards in pathsleetickett-main-patch-37311
-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 |