mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-01-31 14:50:58 +03:00
fix: Add local declaration for lowest variable and improve opkg status error redirection spacing
This commit is contained in:
@@ -53,7 +53,9 @@ is_min_package_version() {
|
|||||||
local current="$1"
|
local current="$1"
|
||||||
local required="$2"
|
local required="$2"
|
||||||
|
|
||||||
|
local lowest
|
||||||
lowest="$(printf '%s\n' "$current" "$required" | sort -V | head -n1)"
|
lowest="$(printf '%s\n' "$current" "$required" | sort -V | head -n1)"
|
||||||
|
|
||||||
[ "$lowest" = "$required" ]
|
[ "$lowest" = "$required" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user