diff options
author | Damian Rouson <damian@sourceryinstitute.org> | 2020-10-13 18:08:57 -0700 |
---|---|---|
committer | Damian Rouson <damian@sourceryinstitute.org> | 2020-10-27 11:54:59 -0700 |
commit | e3319517b1d6b26fabb793ff0698f552e939d5e9 (patch) | |
tree | 3e7e1b6209e43bc315a2ae68cc5dac9ca8906797 | |
parent | 108a9973659b3c112f66e6246fa4a8fcf136a2af (diff) | |
download | fpm-e3319517b1d6b26fabb793ff0698f552e939d5e9.tar.gz fpm-e3319517b1d6b26fabb793ff0698f552e939d5e9.zip |
fix(install.sh): define install_path earlier
-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 |