Before cabal install should be cabal update. Also, in copy command the home dir was missing

Ivan Milosavljevic
2016-11-09 11:02:50 +01:00
parent 2fa278cd79
commit 4c59acc225

@@ -15,8 +15,9 @@ _Note: Haskell Platform v7.10.3 and v8.0.1 requires glibc v2.14 but CentOS 6 has
popd
rm -r "$dir"
# Install shellcheck
cabal update
cabal install shellcheck
# Place it in a global directory
cp .cabal/bin/shellcheck /usr/local/bin # portable to other el6 systems without Haskell
cp ~/.cabal/bin/shellcheck /usr/local/bin # portable to other el6 systems without Haskell