Fix shellcheck complaints in provisioning scripts

Change-Id: I38306c6d2ff360dc12f8c33b289bbc4ae4935aca
Reviewed-by: Joni Jäntti <joni.jantti@qt.io>
Reviewed-by: Simo Fält <simo.falt@qt.io>
This commit is contained in:
Tony Sarajärvi
2018-04-11 09:13:53 +03:00
committed by Liang Qi
parent 1125bbae42
commit 9bf79e6bab
11 changed files with 41 additions and 19 deletions

View File

@@ -35,6 +35,8 @@
set +e
# shellcheck disable=SC1090
# We need to source to be able to use cmake in the shell
if uname -a |grep -q "Ubuntu"; then
source ~/.profile
@@ -44,11 +46,13 @@ fi
set -ex
# shellcheck source=../unix/SetEnvVar.sh
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
TEMPDIR=$(mktemp --directory) || echo "Failed to create temporary directory"
# shellcheck disable=SC2064
trap "sudo rm -fr $TEMPDIR" EXIT
cd $TEMPDIR
cd "$TEMPDIR"
sudo pip install --upgrade pip
sudo pip install six