remove quotes on post-deployment step

This commit is contained in:
Leonid Lapshin
2020-11-03 15:55:19 +03:00
parent d1d66ae0fd
commit 9fe3134cd6

View File

@@ -17,13 +17,11 @@ rm -rf $HELPER_SCRIPT_FOLDER
rm -rf $INSTALLER_SCRIPT_FOLDER
chmod 755 $IMAGE_FOLDER
# Check PATH
if [[ $PATH == \"*\" ]]
then
echo "ERROR: PATH contains quotes"
echo "PATH = $PATH"
exit 1
fi
# Remove quotes from PATH
PATH=${PATH#"\""}
PATH=${PATH%"\""}
echo "PATH=$PATH" | sudo tee -a /etc/environment
echo "Updated PATH: $PATH
# Clean yarn and npm cache
yarn cache clean