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

View File

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