Skip to content

Commit acf02aa

Browse files
author
Damian Rouson
committed
fix(install): remove additional bashisms
This commit makes the edits suggested at #216 (review)
1 parent 277828d commit acf02aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ set -e # exit on error
55

66
install_path="$HOME/.local/bin"
77

8-
if command -v stack &> /dev/null ; then
8+
if command -v stack 1> /dev/null 2>&1 ; then
99
echo "found stack"
1010
else
1111
echo "Haskell stack not found."
1212
echo "Installing Haskell stack to."
1313
curl -sSL https://get.haskellstack.org/ | sh
14-
if command -v stack &> /dev/null ; then
14+
if command -v stack 1> /dev/null 2>&1 ; then
1515
echo "Haskell stack installation successful."
1616
else
1717
echo "Haskell stack installation unsuccessful."

0 commit comments

Comments
 (0)