diff options
| author | Connor Thomson <blumatrikz@gmail.com> | 2026-09-08 18:27:39 -0700 |
|---|---|---|
| committer | Connor Thomson <blumatrikz@gmail.com> | 2026-09-08 18:27:39 -0700 |
| commit | f1ddc12b68b4e4c8087962de25260470e6df2bea (patch) | |
| tree | 7d0440a6402a9b0ef75ded23fa64b68534255bba /scripts/replace.sh | |
| parent | 6025860a61386bf767b29c3ec5fd0d31285f1056 (diff) | |
Add tuxanci2 files
Diffstat (limited to 'scripts/replace.sh')
| -rwxr-xr-x | scripts/replace.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/scripts/replace.sh b/scripts/replace.sh deleted file mode 100755 index 7912c72..0000000 --- a/scripts/replace.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -# '@' - this char is prohibited to use -oldtext="$1" -newtext="$2" - -GoThroughDir() { - for D in $1*; do - if [ -d $D ] && [ "$D" == "./.git" ]; then - continue - elif [ -d $D ] && [ "$D" == "./build" ]; then - continue - elif [ -d $D ]; then - GoThroughDir $D/ - elif [ "$D" == "$0" ]; then - continue - else - sed -i -e "s@$oldtext@$newtext@" $D - fi - done -} - -GoThroughDir ./ - -grep -iHr "$oldtext" ./ | grep -v .git/ |