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>
This commit is contained in:
Tony Sarajärvi
2019-05-16 13:45:06 +03:00
parent 2fd2a20f18
commit 670aa09aba

View File

@@ -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