From 6804cde82ccba5a0765432caa91fb95df01b2026 Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Sat, 4 Apr 2020 20:29:12 +0200 Subject: [PATCH] Change tests in shell scripts to be more compatible with Bourne shell This is needed for the scripts to work in Alpine Linux, which comes with a Bourne shell. --- src/main/distrib/linux/migrate-tickets.sh | 2 +- src/main/distrib/linux/reindex-tickets.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/distrib/linux/migrate-tickets.sh b/src/main/distrib/linux/migrate-tickets.sh index f521528e..ce746bf9 100644 --- a/src/main/distrib/linux/migrate-tickets.sh +++ b/src/main/distrib/linux/migrate-tickets.sh @@ -8,7 +8,7 @@ # # -------------------------------------------------------------------------- -if [[ -z $1 || -z $2 ]]; then +if [ -z $1 ] || [ -z $2 ]; then echo "Please specify the output ticket service and your baseFolder!"; echo ""; echo "usage:"; diff --git a/src/main/distrib/linux/reindex-tickets.sh b/src/main/distrib/linux/reindex-tickets.sh index 8261b819..6985d606 100644 --- a/src/main/distrib/linux/reindex-tickets.sh +++ b/src/main/distrib/linux/reindex-tickets.sh @@ -11,7 +11,7 @@ # # -------------------------------------------------------------------------- -if [[ -z $1 ]]; then +if [ -z $1 ] ; then echo "Please specify your baseFolder!"; echo ""; echo "usage:"; -- 2.39.5