From b9ae7e83e47294417e03602766b3d405038c6bf9 Mon Sep 17 00:00:00 2001 From: NODA Kai Date: Sun, 16 Jan 2022 00:43:33 +0800 Subject: [PATCH] SCYLLA-VERSION-GEN: rm unnecessary Bashism Make Debian's dash happy --- SCYLLA-VERSION-GEN | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SCYLLA-VERSION-GEN b/SCYLLA-VERSION-GEN index 38fd07c..800b109 100755 --- a/SCYLLA-VERSION-GEN +++ b/SCYLLA-VERSION-GEN @@ -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]+)-(.+)-([^-]+)$'