From 711c8b5af0128f3a257e1f75da884e855b0e01a9 Mon Sep 17 00:00:00 2001 From: Alex <akreft@trineo.org> Date: Mon, 26 Jul 2021 14:22:38 +0200 Subject: [PATCH] Safety message before deletion of the database --- integrationtests/test.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/integrationtests/test.sh b/integrationtests/test.sh index 80a2afe3..e9a6d757 100755 --- a/integrationtests/test.sh +++ b/integrationtests/test.sh @@ -1,4 +1,14 @@ #!/bin/bash +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" ] + then + echo "Exiting..." + exit 0 + fi +fi OUT=/tmp/crawler.output ls cat pycaosdb.ini -- GitLab