fix: Add local declaration for lowest variable and improve opkg status error redirection spacing

This commit is contained in:
Andrey Petelin
2025-09-25 11:43:03 +05:00
parent c31df68bec
commit 5b15a56502

View File

@@ -53,7 +53,9 @@ is_min_package_version() {
local current="$1"
local required="$2"
local lowest
lowest="$(printf '%s\n' "$current" "$required" | sort -V | head -n1)"
[ "$lowest" = "$required" ]
}