File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -u # error on use of undefined variable
4
+ set -e # exit on error
5
+
6
+ install_path=" $HOME /.local/bin"
7
+
8
+ if command -v stack & > /dev/null ; then
9
+ echo " found stack"
10
+ else
11
+ echo " Haskell stack not found."
12
+ echo " Installing Haskell stack to."
13
+ curl -sSL https://get.haskellstack.org/ | sh
14
+ if command -v stack & > /dev/null ; then
15
+ echo " Haskell stack installation successful."
16
+ else
17
+ echo " Haskell stack installation unsuccessful."
18
+ exit 1
19
+ fi
20
+ fi
21
+
22
+ if [[ -x " $install_path /fpm" ]]; then
23
+ echo " Overwriting existing fpm installation in $install_path "
24
+ fi
25
+
26
+ cd bootstrap
27
+ stack install
28
+
29
+ if [[ -x " $install_path /fpm" ]]; then
30
+ echo " fpm installed successfully to $install_path "
31
+ else
32
+ echo " fpm installation unsuccessful: fpm not found in $install_path "
33
+ fi
You can’t perform that action at this time.
0 commit comments