summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Zschocke <f.zschocke+git@gmail.com>2020-04-04 20:29:12 +0200
committerFlorian Zschocke <f.zschocke+git@gmail.com>2020-04-05 12:34:54 +0200
commit6804cde82ccba5a0765432caa91fb95df01b2026 (patch)
treecd492a0fdf1b86a540e1ec8cbeb29ae0de9aad26
parent803d4171bf24e82612c526d65de77aa580c8a62f (diff)
downloadgitblit-6804cde82ccba5a0765432caa91fb95df01b2026.tar.gz
gitblit-6804cde82ccba5a0765432caa91fb95df01b2026.zip
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.
-rw-r--r--src/main/distrib/linux/migrate-tickets.sh2
-rw-r--r--src/main/distrib/linux/reindex-tickets.sh2
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:";