1
0
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:
Dylan Araps 2021-07-15 07:41:59 +03:00
parent c0cc18b6ee
commit 534ab0d96d
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

2
kiss
View File

@ -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