From fe3006a21217afd210b30918e09ff85bfeb6c1a8 Mon Sep 17 00:00:00 2001 From: EndrII <EndrIIMail@gmail.com> Date: Fri, 19 Mar 2021 14:25:10 +0300 Subject: [PATCH] fix ignore path --- init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.sh b/init.sh index f6f7c19..c049e0b 100755 --- a/init.sh +++ b/init.sh @@ -13,8 +13,8 @@ fi REPLACESTRING="s+RENAME_ME+$1+g" echo $REPLACESTRING -find . -type f -not -path ".git" -exec sed -i $REPLACESTRING {} + -find . -type f -not -path ".git" -exec sed -i $REPLACESTRING {} + +find . -type f -not -path ".git/*" -exec sed -i $REPLACESTRING {} + +find . -type f -not -path ".git/*" -exec sed -i $REPLACESTRING {} + find src -type d -name '*RENAME_ME*' -exec sh -c 'x="{}"; NEWSTR=$(echo "$x" | sed "s/RENAME_ME/'$1'/"); mv "$x" "$NEWSTR"' \;