Extract with root privileges

This commit is contained in:
Balletie 2014-08-23 20:31:52 +02:00
parent fd1943d3cb
commit 22f090a688

View file

@ -58,8 +58,8 @@ if [[ `uname` == "Darwin" ]]; then
fi
if [[ ! -d $ming_path ]]; then
echo "Extracting contents of $mingw_tar to $mingw_install_dir"
echo "Don't forget to add $mingw_path to your $PATH variable!"
tar -xyf $cachedir/$mingw_tar -C $mingw_install_dir
echo "Don't forget to add $mingw_path to your PATH variable!"
sudo tar -xyf $cachedir/$mingw_tar -C $mingw_install_dir
fi
elif [[ `uname` == "Linux" ]]; then
sudo apt-get install -y --force-yes binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686