Fix empty arg

This commit is contained in:
Reinier Criel 2026-04-13 15:02:41 -07:00
parent e54869ddd0
commit 50623cfc9a

View file

@ -343,10 +343,16 @@ parse_arguments() {
if [ $# -eq 0 ]; then
error "Missing value for --install-dir"
fi
if [ -z "$1" ]; then
error "--install-dir must not be empty"
fi
SAFE_CHAIN_BASE="$1"
;;
--install-dir=*)
SAFE_CHAIN_BASE="${1#--install-dir=}"
if [ -z "$SAFE_CHAIN_BASE" ]; then
error "--install-dir must not be empty"
fi
;;
--include-python)
warn "--include-python is deprecated and ignored. Python ecosystem is now included by default."