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 rm -rf $INSTALLER_SCRIPT_FOLDER
chmod 755 $IMAGE_FOLDER chmod 755 $IMAGE_FOLDER
# Check PATH # Remove quotes from PATH
if [[ $PATH == \"*\" ]] PATH=${PATH#"\""}
then PATH=${PATH%"\""}
echo "ERROR: PATH contains quotes" echo "PATH=$PATH" | sudo tee -a /etc/environment
echo "PATH = $PATH" echo "Updated PATH: $PATH
exit 1
fi
# Clean yarn and npm cache # Clean yarn and npm cache
yarn cache clean yarn cache clean