aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamian Rouson <damian@sourceryinstitute.org>2020-10-13 18:08:57 -0700
committerDamian Rouson <damian@sourceryinstitute.org>2020-10-27 11:54:59 -0700
commite3319517b1d6b26fabb793ff0698f552e939d5e9 (patch)
tree3e7e1b6209e43bc315a2ae68cc5dac9ca8906797
parent108a9973659b3c112f66e6246fa4a8fcf136a2af (diff)
downloadfpm-e3319517b1d6b26fabb793ff0698f552e939d5e9.tar.gz
fpm-e3319517b1d6b26fabb793ff0698f552e939d5e9.zip
fix(install.sh): define install_path earlier
-rwxr-xr-xinstall.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 5029774..862de25 100755
--- a/install.sh
+++ b/install.sh
@@ -3,6 +3,8 @@
set -u # error on use of undefined variable
set -e # exit on error
+install_path="$HOME/.local/bin"
+
if command -v stack &> /dev/null ; then
echo "found stack"
else
@@ -17,7 +19,6 @@ else
fi
fi
-install_path="$HOME/.local/bin"
if [[ -x "$install_path/fpm" ]]; then
echo "Overwriting existing fpm installation in $install_path"
fi