From a4323d0526fe791727cae3f1ce3fb34f20241fdc Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 8 Sep 2021 07:50:47 +0200 Subject: [PATCH] trying to make the old command work with new variable grabbler --- deployment-script.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deployment-script.sh b/deployment-script.sh index f92a8d6..0bb4212 100644 --- a/deployment-script.sh +++ b/deployment-script.sh @@ -9,8 +9,7 @@ if [ -n "`shopt globstar | grep off`" ]; then shopt -s globstar; fi rm ./threadr/**/README.md #run the macro handler -#echo "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/python variable_grabbler.py.old /;s/$/ macros\/pass0\*.json/'`" | bash - -find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" -exec python3 variable_grabbler.py macros/pass0*.json {} \> {} \; +echo "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/file=/;s/$/\; python3 macros\/pass0\*.json $file > $file/'`" | bash - echo "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/python variable_grabbler.py.old /;s/$/ macros\/pass1\*.json/'`" | bash - echo "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/python variable_grabbler.py.old /;s/$/ macros\/pass2\*.json/'`" | bash - echo "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/python variable_grabbler.py.old /;s/$/ macros\/pass3\*.json/'`" | bash -