1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 00:20:05 -07:00

kiss: split on _ also

This commit is contained in:
Dylan Araps 2021-07-15 10:48:42 +03:00
parent f77905abcb
commit f3c2cf717c
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

4
kiss
View File

@ -186,10 +186,10 @@ pkg_find_version() {
die "$1" "Failed to read version file ($repo_dir/version)" die "$1" "Failed to read version file ($repo_dir/version)"
case $2 in 1) 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
IFS=.+- read -r repo_major repo_minor repo_patch repo_ident <<EOF IFS=.+-_ read -r repo_major repo_minor repo_patch repo_ident <<EOF
$repo_ver $repo_ver
EOF EOF
esac esac