From bcdd916c6eeaf428efd45ccad4354f24c6f3e54a Mon Sep 17 00:00:00 2001
From: Alex <akreft@trineo.org>
Date: Mon, 26 Jul 2021 14:32:08 +0200
Subject: [PATCH] fix

---
 integrationtests/test.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/integrationtests/test.sh b/integrationtests/test.sh
index e9a6d757..9a2ca049 100755
--- a/integrationtests/test.sh
+++ b/integrationtests/test.sh
@@ -1,9 +1,13 @@
 #!/bin/bash
-if [ $1 != "-force" ]
+if [ "$1" != "-force" ]
 then
     echo "Warning: for these tests, the whole database is deleted. Do you want to proceed? (yes/exit)"
     read safety
-    if [ $safety != "yes" ]
+    if [ -z $safety ]
+    then
+        echo "Exiting..."
+        exit 0
+    elif [ $safety != "yes" ]
     then
         echo "Exiting..."
         exit 0
-- 
GitLab