diff --git a/integrationtests/test.sh b/integrationtests/test.sh index e9a6d757b020ab2a4c9b575ac517bad18d5f9294..9a2ca049f11485bc692138ddd2c5e5ba5da1544e 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