From ee832789f7754780e30dab7e8b77b88006301379 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 17 Sep 2024 17:18:21 +0200 Subject: [PATCH] Improve fetchDependencies fetchDependencies can loop forever without any feedback to the user when leading `-` are missing. Detected when using `./fetchDependencies macos` which is of course incorrect. This is fixed by widening the wildcard for unsupported options. --- fetchDependencies | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetchDependencies b/fetchDependencies index a870c300a..64c87bacd 100755 --- a/fetchDependencies +++ b/fetchDependencies @@ -226,7 +226,7 @@ while (( "$#" )); do GLSLANG_ROOT=$2 shift 2 ;; - -*|--*=) + *) echo "Error: Unsupported option $1" >&2 exit 1 ;;