diff options
author | Lee Tickett <lee@tickett.net> | 2022-07-08 17:54:28 +0300 |
---|---|---|
committer | Marcel Amirault <mamirault@gitlab.com> | 2022-07-08 17:54:28 +0300 |
commit | bad57bfe416704e5e39470a32d0ccb6b9c932102 (patch) | |
tree | 043ea6a6567abe1be7c1245396a075d4a9aca478 | |
parent | 7cba2bc5fcc54916ad367b027aef5eb31f4ab8f8 (diff) |
Remove superfluous wildcards in paths
-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..6cc8bfab 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 |