another fix....

master
LinuxMint4Ever 2020-02-19 04:40:40 +01:00
parent 9244f4d19b
commit 24287c1786
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@ echo "Deployment script for repository \"web-deployment\"
==============================================================================" =============================================================================="
echo "Replacing %CONTENT_DIR% in all HTML and PHP files." echo "Replacing %CONTENT_DIR% in all HTML and PHP files."
CONTENT_DIR="/common/content" CONTENT_DIR="\/common\/content"
echo -e "`find ./ -name '*.html' -or -name '*.php' | sed "s/^/workingfile=\'/;s/\$/\'\; cat \\\$workingfile > .\/tmpdeploymentfile\; cat tmpdeploymentfile | sed \'s#%CONTENT_DIR%#\$CONTENT_DIR#\' > \\\$workingfile/"`\nrm tmpdeploymentfile" | bash - echo -e "`find ./ -name '*.html' -or -name '*.php' | sed "s/^/workingfile=\'/;s/\$/\'\; cat \\\$workingfile > .\/tmpdeploymentfile\; cat tmpdeploymentfile | sed \'s#%CONTENT_DIR%#$CONTENT_DIR#\' > \\\$workingfile/"`\nrm tmpdeploymentfile" | bash -
echo "============================================================================== echo "==============================================================================
Done." Done."