From 17154caf753895507a91a247007db58b2ced1577 Mon Sep 17 00:00:00 2001 From: andrewwhitecdw Date: Wed, 12 Aug 2026 18:56:57 -0500 Subject: [PATCH] fix: replace fragile option parsing loop with positional loop Signed-off-by: andrewwhitecdw --- rhel9/nvidia-driver | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rhel9/nvidia-driver b/rhel9/nvidia-driver index b39b38893..d6f236922 100755 --- a/rhel9/nvidia-driver +++ b/rhel9/nvidia-driver @@ -1045,8 +1045,8 @@ KERNEL_VERSION=$(uname -r) PRIVATE_KEY="" PACKAGE_TAG="" -for opt in ${options}; do - case "$opt" in +while [ $# -gt 0 ]; do + case "$1" in -a | --accept-license) ACCEPT_LICENSE="yes"; shift 1 ;; -k | --kernel) KERNEL_VERSION=$2; shift 2 ;; -m | --max-threads) MAX_THREADS=$2; shift 2 ;;