Skip to content

Commit d86b7a6

Browse files
author
Damian Rouson
committed
Fix #617 false detection of -r/-i conflict
1 parent 7d07373 commit d86b7a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prerequisites/build-functions/set_or_print_installation_path.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ set_or_print_installation_path()
1919
export install_path="${arg_r%/}/${arg_p:-${arg_D:-${arg_P:-${arg_U:-${arg_V}}}}}/${version_to_build}"
2020
fi
2121
else
22-
[ ! -z "${arg_r}" ] &&
22+
if [[ ! "${arg_i%/}" != "${arg_r}" ]]; then
2323
emergency "Please pass only one of {-i,-r} or a longer equivalent (multiple detected). [exit 105]"
24+
fi
2425
install_path="${arg_i%/}"
2526
fi
2627

0 commit comments

Comments
 (0)