From 37f1be740c4dc04a32552ae0a01a2351469bc8ea 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 f5af0e2..d4ba8d7 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