From b3dfea8303a5b3b012ea127cd7df0dc3c54b6a48 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Wed, 22 Jan 2020 14:35:24 -0800 Subject: [PATCH] tools: fix-source-copyright: fix botched script --- tools/gensrc/fix-source-copyright | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gensrc/fix-source-copyright b/tools/gensrc/fix-source-copyright index 8098c620..e7745603 100644 --- a/tools/gensrc/fix-source-copyright +++ b/tools/gensrc/fix-source-copyright @@ -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