aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorBrad Richardson <everythingfunctional@protonmail.com>2020-11-12 12:43:51 -0600
committerBrad Richardson <everythingfunctional@protonmail.com>2020-11-12 12:43:51 -0600
commitffd95a4179276d49fd4d2a277c2eba905dc43b7a (patch)
tree721a7f56be1a16e1acd540463f7132b73b164781 /install.sh
parent3276af2e000d1b2c90f151148cd01cce0d3e886d (diff)
parent26f2fd3d3ee0cce09a880ec273a5e5f4914d8b35 (diff)
downloadfpm-ffd95a4179276d49fd4d2a277c2eba905dc43b7a.tar.gz
fpm-ffd95a4179276d49fd4d2a277c2eba905dc43b7a.zip
Merge branch 'master' into test_runner_option
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index 862de25..578b156 100755
--- a/install.sh
+++ b/install.sh
@@ -5,13 +5,13 @@ set -e # exit on error
install_path="$HOME/.local/bin"
-if command -v stack &> /dev/null ; then
+if command -v stack 1> /dev/null 2>&1 ; then
echo "found stack"
else
echo "Haskell stack not found."
echo "Installing Haskell stack to."
curl -sSL https://get.haskellstack.org/ | sh
- if command -v stack &> /dev/null ; then
+ if command -v stack 1> /dev/null 2>&1 ; then
echo "Haskell stack installation successful."
else
echo "Haskell stack installation unsuccessful."
@@ -19,14 +19,14 @@ else
fi
fi
-if [[ -x "$install_path/fpm" ]]; then
+if [ -x "$install_path/fpm" ]; then
echo "Overwriting existing fpm installation in $install_path"
fi
cd bootstrap
stack install
-if [[ -x "$install_path/fpm" ]]; then
+if [ -x "$install_path/fpm" ]; then
echo "fpm installed successfully to $install_path"
else
echo "fpm installation unsuccessful: fpm not found in $install_path"