From f319c7301617622d630b019dc2009f28251fbd42 Mon Sep 17 00:00:00 2001 From: NODA Kai Date: Sun, 16 Jan 2022 00:44:43 +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 38fd07cb60..800b109701 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]+)-(.+)-([^-]+)$'