From 9f752fd223ce8a2539874631008d9eda83aa5ba0 Mon Sep 17 00:00:00 2001 From: Kerin Millar Date: Tue, 17 Jan 2023 09:25:58 +0000 Subject: net/wpa_supplicant.sh: Properly expand the number of positional parameters ${#*} is undefined behaviour. Just write it as $#. Signed-off-by: Kerin Millar Signed-off-by: Sam James --- net/wpa_supplicant.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wpa_supplicant.sh b/net/wpa_supplicant.sh index 3f8e1b1..9f024c0 100644 --- a/net/wpa_supplicant.sh +++ b/net/wpa_supplicant.sh @@ -57,7 +57,7 @@ wpa_supplicant_pre_start() [ -z "${cliopts}" ] && cliopts=${wpa_cli} set -- $opts local opt_D - while [ ${#*} -gt 0 ]; do + while [ "$#" -gt 0 ]; do local opt=$1 ; shift case "$opt" in -D) opt_D=${1} ; shift ;; -- cgit v1.2.3-65-gdbad