From d3939985826535fe48e24d843d0461e5119fb4be Mon Sep 17 00:00:00 2001 From: fukiame Date: Sat, 7 Feb 2026 23:34:55 +0700 Subject: [PATCH] fix: common.sh: getvar: reset i usually not a problem though? Signed-off-by: fukiame --- MBCPApp/common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/MBCPApp/common.sh b/MBCPApp/common.sh index 2a887ec..d270ea5 100644 --- a/MBCPApp/common.sh +++ b/MBCPApp/common.sh @@ -29,6 +29,7 @@ strip_all() { getvar() { # Usage: getline "n" "pattern" "file" + i=0 while IFS= read -r line; do i=$((i+1)) [ "$i" = "$1" ] && printf '%s\n' "${line##$2}" && return