arg sudo...

This commit is contained in:
Yann Esposito (Yogsototh) 2014-08-17 12:19:52 +02:00
parent 3f85e37cbf
commit 05806001b3
2 changed files with 6 additions and 4 deletions

View file

@ -2,9 +2,11 @@ install-haskell
===============
A script to install Haskell and minimize cabal hell.
It might ask your password (you must be sudoer).
```
curl -O https://raw.githubusercontent.com/yogsototh/install-haskell/master/install-haskell.sh
sudo ./install-haskell.sh
chmod ugo+x install-haskell.sh
./install-haskell.sh
```

View file

@ -26,7 +26,7 @@ fi
echo "Installing GHC..."
tar xJf $ghctar
cd ghc-${ghcversion}
./configure && make install
./configure && sudo make install
cd $tmpdir
echo "Downloading cabal..."
@ -40,9 +40,9 @@ fi
tar xzf $cabaltar
echo "Installing cabal..."
if [[ -e ./cabal ]]; then
mv cabal /usr/local/bin
sudo mv cabal /usr/local/bin
else
mv ./dist/build/cabal/cabal /usr/local/bin
sudo mv ./dist/build/cabal/cabal /usr/local/bin
fi
echo "Init cabal..."