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
1 changed files with 2 additions and 2 deletions

4
kiss
View File

@ -186,10 +186,10 @@ pkg_find_version() {
die "$1" "Failed to read version file ($repo_dir/version)"
case $2 in 1)
# Split the version on '.+-' to obtain individual components.
# Split the version on '.+-_' to obtain individual components.
# Intentional, globbing disabled.
# 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
EOF
esac