From fe3595770156ce5382b2ee22191041779476b1d2 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: Mon, 30 Mar 2020 12:35:43 +0200
Subject: [PATCH] proper deletion

---
 functions.sh           | 2 +-
 setup-or-reset-dief.sh | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/functions.sh b/functions.sh
index b34fe8e..7c09716 100755
--- a/functions.sh
+++ b/functions.sh
@@ -17,7 +17,7 @@ ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
 CONFIGDIR="$ROOT/extractionConfiguration"
 LOGDIR="$ROOT/logs/$(date +%Y-%m-%d)"  && mkdir -p $LOGDIR
 DATABUSDIR="$ROOT/databus-poms"
-MARVINEXTRACTIONDIR="$ROOT/marvin-extraction/"
+MARVINEXTRACTIONDIR="$ROOT/marvin-extraction"
 DIEFDIR="$MARVINEXTRACTIONDIR/extraction-framework"
 EXTRACTIONBASEDIR="$MARVINEXTRACTIONDIR/wikidumps" && mkdir -p $EXTRACTIONBASEDIR
 
diff --git a/setup-or-reset-dief.sh b/setup-or-reset-dief.sh
index 63263fb..73a9358 100755
--- a/setup-or-reset-dief.sh
+++ b/setup-or-reset-dief.sh
@@ -4,6 +4,7 @@
 source functions.sh
 
 # delete and clone
+rm -rf $DIEFDIR
 rm -r $MARVINEXTRACTIONDIR/*
 cd marvin-extraction
 git clone "https://github.com/dbpedia/extraction-framework.git" $DIEFDIR &>/dev/null
-- 
GitLab