This commit is contained in:
NODA Kai 2022-09-18 12:06:30 +03:00 committed by GitHub
commit c6d15c092c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ usage() {
} }
OVERRIDE= OVERRIDE=
while [[ $# > 0 ]]; do while [ $# > 0 ]; do
case "$1" in case "$1" in
--version) --version)
OVERRIDE="$2" OVERRIDE="$2"
@ -33,7 +33,7 @@ while [[ $# > 0 ]]; do
esac esac
done done
if [[ -n "$OVERRIDE" ]]; then if [ -n "$OVERRIDE" ]; then
# regular expression for p-v-r: alphabetic+dashes for product, trailing non-dashes # regular expression for p-v-r: alphabetic+dashes for product, trailing non-dashes
# for release, everything else for version # for release, everything else for version
RE='^([-a-z]+)-(.+)-([^-]+)$' RE='^([-a-z]+)-(.+)-([^-]+)$'