mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-19 03:26:15 +08:00
Provisioning: Add variables properly in .bashrc
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: Ie2c64764f9e0a676307cb3a144162cbc35eb33fb Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
@@ -73,8 +73,8 @@ try
|
||||
sudo mkdir -p "$path"
|
||||
sudo ln -s /usr/local/openssl-$opensslVersion $opensslTargetLocation || throw $ExceptionLN
|
||||
|
||||
echo "export PATH=\"$opensslTargetLocation/bin:$PATH\"" >> ~/.bashrc
|
||||
echo "export MANPATH=\"$opensslTargetLocation/share/man:$MANPATH\"" >> ~/.bashrc
|
||||
echo "export PATH=\"$opensslTargetLocation/bin:\$PATH\"" >> ~/.bashrc
|
||||
echo "export MANPATH=\"$opensslTargetLocation/share/man:\$MANPATH\"" >> ~/.bashrc
|
||||
|
||||
security find-certificate -a -p /Library/Keychains/System.keychain | sudo tee -a $opensslTargetLocation/ssl/cert.pem || throw $ExceptionCertificate
|
||||
security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain | sudo tee -a $opensslTargetLocation/ssl/cert.pem || throw $ExceptionCertificate
|
||||
|
||||
Reference in New Issue
Block a user