aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hydra/tmpfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hydra/tmpfile b/lib/hydra/tmpfile
index 1ffe73e..0ac7402 100644
--- a/lib/hydra/tmpfile
+++ b/lib/hydra/tmpfile
@@ -37,10 +37,11 @@ function hydra_unset_tmpfile {
fi
rm -rf $1
- rmdir $1/../tmp &> /dev/null
if [ "$?" != "0" ]; then
echo "Warning: could not delete file $1. Please delete it manually as it might have sensitive information."
exit 1
fi
+
+ rmdir $BASEDIR/tmp &> /dev/null
}