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:
parent
f77905abcb
commit
f3c2cf717c
4
kiss
4
kiss
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user