mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 00:20:05 -07:00
kiss: simplify check
This commit is contained in:
parent
c0cc18b6ee
commit
534ab0d96d
2
kiss
2
kiss
@ -185,7 +185,7 @@ pkg_find_version() {
|
|||||||
read -r repo_ver repo_rel 2>/dev/null < "$repo_dir/version" ||
|
read -r repo_ver repo_rel 2>/dev/null < "$repo_dir/version" ||
|
||||||
die "$1" "Failed to read version file ($repo_dir/version)"
|
die "$1" "Failed to read version file ($repo_dir/version)"
|
||||||
|
|
||||||
case $2 in *?*)
|
case $2 in 1)
|
||||||
# Split the version on '.+-' to obtain individual components.
|
# Split the version on '.+-' to obtain individual components.
|
||||||
# Intentional, globbing disabled.
|
# Intentional, globbing disabled.
|
||||||
# shellcheck disable=2086
|
# shellcheck disable=2086
|
||||||
|
Loading…
Reference in New Issue
Block a user