tools: fix-source-copyright: fix botched script

This commit is contained in:
Bill Zissimopoulos 2020-01-22 14:35:24 -08:00
parent 3ab0e5a3d3
commit b3dfea8303
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3

View File

@ -11,7 +11,7 @@ if [[ $# -eq 0 ]]; then
fi
if [[ "$(uname -s)" == Darwin* ]]; then
git grep -lz "$@" | xargs -0 sed -E -i "" -e "s/$MATCH/$SUBST/"
find "$@" -type f -print0 | xargs -0 sed -E -i "" -e "s/$MATCH/$SUBST/"
else
git grep -lz "$@" | xargs -0 sed -E -i"" -e "s/$MATCH/$SUBST/"
find "$@" -type f -print0 | xargs -0 sed -E -i"" -e "s/$MATCH/$SUBST/"
fi