Skip to content

Commit

Permalink
Merge pull request #15 from make-files/fix-git-find-errors
Browse files Browse the repository at this point in the history
Fix git-find errors when the file list is empty
  • Loading branch information
ezzatron authored Aug 22, 2021
2 parents 82c9269 + 6191632 commit 35ebcbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-find
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ fi
cd "$MF_PROJECT_ROOT"
files="$(git ls-files; git ls-files --other --exclude-standard)"
files="$(find $files 2>/dev/null || true)"
find $files -type f -iname "$1"
[[ -n "$files" ]] && find $files -type f -iname "$1"

0 comments on commit 35ebcbd

Please sign in to comment.