summaryrefslogtreecommitdiffstats
path: root/coin
diff options
context:
space:
mode:
authorTony Sarajärvi <tony.sarajarvi@qt.io>2019-05-16 13:45:06 +0300
committerTony Sarajärvi <tony.sarajarvi@qt.io>2019-05-16 13:45:06 +0300
commit670aa09abaa781f41d8991f74cba8016ecbe47cc (patch)
tree438e75128e4fae8100ad21b666b03404b8a35f8e /coin
parent2fd2a20f18e3ca471294adc45671296865f22c8e (diff)
Provisioning: Fix cleanup when building GCC from sources
We need sudo rights to delete the temporary folder where sources for GCC are extracted. Change-Id: Ic0642e44eabfc3449f7ce5903a63bd38924f7dca Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
Diffstat (limited to 'coin')
-rwxr-xr-xcoin/provisioning/common/linux/gcc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/coin/provisioning/common/linux/gcc.sh b/coin/provisioning/common/linux/gcc.sh
index 44c63e2f..c26c9bf1 100755
--- a/coin/provisioning/common/linux/gcc.sh
+++ b/coin/provisioning/common/linux/gcc.sh
@@ -83,7 +83,7 @@ function InstallGCC() {
sudo make install
rm -rf "$targetFile"
- rm -rf "$tmpFolder/gcc-$version"
+ sudo rm -rf "$tmpFolder/gcc-$version"
fi
# openSUSE has update-alternatives under /usr/sbin and it has grouped the commands by means of master and slave links