Provisioning: Add $PATH properly in .bashrc
authorTony Sarajärvi <tony.sarajarvi@qt.io>
Mon, 28 Aug 2017 06:42:02 +0000 (09:42 +0300)
committerSimon Hausmann <simon.hausmann@qt.io>
Wed, 30 Aug 2017 17:16:48 +0000 (17:16 +0000)
If we, in a provisioning script, add $PATH to another
file, that $PATH gets expanded there and now. We need it
written as $PATH to the target file, so that it gets expanded
when the other file is run. Not at the moment of running this
provisioning script.

Change-Id: Id963f0f8b1cc74b02d35c1a91eb974ed816839ab
Reviewed-by: Simo Fält <simo.falt@qt.io>
coin/provisioning/qtci-linux-RHEL-6.6-x86_64/09-cmake.sh
coin/provisioning/qtci-linux-Ubuntu-14.04-x86_64/09-cmake.sh

index 7cdfc25..c23cf9b 100644 (file)
@@ -50,4 +50,4 @@ appPrefix="cmake-$version-Linux-x86_64"
 InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$targetFolder" "$appPrefix"
 
 echo "Adding $targetFolder/bin to PATH"
-echo "export PATH=$targetFolder/bin:$PATH" >> ~/.bashrc
+echo "export PATH=$targetFolder/bin:\$PATH" >> ~/.bashrc
index 7cdfc25..c23cf9b 100644 (file)
@@ -50,4 +50,4 @@ appPrefix="cmake-$version-Linux-x86_64"
 InstallFromCompressedFileFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$targetFolder" "$appPrefix"
 
 echo "Adding $targetFolder/bin to PATH"
-echo "export PATH=$targetFolder/bin:$PATH" >> ~/.bashrc
+echo "export PATH=$targetFolder/bin:\$PATH" >> ~/.bashrc