diff options
author | Damian Rouson <damian@sourceryinstitute.org> | 2020-10-13 18:08:57 -0700 |
---|---|---|
committer | Damian Rouson <damian@sourceryinstitute.org> | 2020-10-13 18:11:07 -0700 |
commit | b44b567f4f7eb574bdf6e18a2f066b266fb30fd7 (patch) | |
tree | 81ed98bebd108d1cc4f487a55794d35f43daea39 /install.sh | |
parent | de96c4a53b14f9feb51447923598d87d5e3b1220 (diff) | |
download | fpm-b44b567f4f7eb574bdf6e18a2f066b266fb30fd7.tar.gz fpm-b44b567f4f7eb574bdf6e18a2f066b266fb30fd7.zip |
fix(install.sh): define install_path earlier
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |