From 50623cfc9a69cc7f1c1691fd79a5adf77e343126 Mon Sep 17 00:00:00 2001 From: Reinier Criel Date: Mon, 13 Apr 2026 15:02:41 -0700 Subject: [PATCH] Fix empty arg --- install-scripts/install-safe-chain.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install-scripts/install-safe-chain.sh b/install-scripts/install-safe-chain.sh index 242dcf2..2335ae3 100755 --- a/install-scripts/install-safe-chain.sh +++ b/install-scripts/install-safe-chain.sh @@ -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."