summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 19:12:35 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 19:12:35 -0300
commitb5a163cda0c19468724d05e7bbc1995787cb6ab2 (patch)
treefc8d3128df39d6fe06eaf86f7400f36811496d1c
parentb02db7e042128e8e052270d7a12ff7f4f897a4a4 (diff)
downloadhydra-b5a163cda0c19468724d05e7bbc1995787cb6ab2.tar.gz
hydra-b5a163cda0c19468724d05e7bbc1995787cb6ab2.tar.bz2
Minor fix
-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
}