aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorDamian Rouson <damian@sourceryinstitute.org>2020-10-13 18:08:57 -0700
committerDamian Rouson <damian@sourceryinstitute.org>2020-10-13 18:11:07 -0700
commitb44b567f4f7eb574bdf6e18a2f066b266fb30fd7 (patch)
tree81ed98bebd108d1cc4f487a55794d35f43daea39 /install.sh
parentde96c4a53b14f9feb51447923598d87d5e3b1220 (diff)
downloadfpm-b44b567f4f7eb574bdf6e18a2f066b266fb30fd7.tar.gz
fpm-b44b567f4f7eb574bdf6e18a2f066b266fb30fd7.zip
fix(install.sh): define install_path earlier
Diffstat (limited to 'install.sh')
-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