Skip to content

Commit e1af93f

Browse files
authored
Merge pull request #236 from sourceryinstitute/remove-another-bashism
fix(install): remove additional bashisms
2 parents e034ad4 + acf02aa commit e1af93f

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)