From 9fe3134cd6346cd8aba2d4f73c181f13c9af4585 Mon Sep 17 00:00:00 2001 From: Leonid Lapshin Date: Tue, 3 Nov 2020 15:55:19 +0300 Subject: [PATCH] remove quotes on post-deployment step --- images/linux/scripts/installers/post-deployment.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/images/linux/scripts/installers/post-deployment.sh b/images/linux/scripts/installers/post-deployment.sh index d427a172e..9b3e2fe07 100644 --- a/images/linux/scripts/installers/post-deployment.sh +++ b/images/linux/scripts/installers/post-deployment.sh @@ -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