From 534ab0d96d234839fd2c7c02beab944c89561ca4 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 15 Jul 2021 07:41:59 +0300 Subject: [PATCH] kiss: simplify check --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 8d327eb..71edf87 100755 --- a/kiss +++ b/kiss @@ -185,7 +185,7 @@ pkg_find_version() { read -r repo_ver repo_rel 2>/dev/null < "$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. # Intentional, globbing disabled. # shellcheck disable=2086