diff --git a/install/install.sh b/install/install.sh index 77df24aa..6936ba7b 100755 --- a/install/install.sh +++ b/install/install.sh @@ -263,7 +263,7 @@ confirm() { } check_bin_dir() { - bin_dir="$1" + bin_dir="${1%/}" if [ ! -d "$BIN_DIR" ]; then error "Installation location $BIN_DIR does not appear to be a directory" @@ -276,7 +276,7 @@ check_bin_dir() { good=$( IFS=: for path in $PATH; do - if [ "${path}" = "${bin_dir}" ]; then + if [ "${path%/}" = "${bin_dir}" ]; then printf 1 break fi