]> gitweb.fluxo.info Git - hydra.git/commitdiff
Minor fix
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 27 Sep 2011 22:12:35 +0000 (19:12 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 27 Sep 2011 22:12:35 +0000 (19:12 -0300)
lib/hydra/tmpfile

index 1ffe73e2951305be475964939d820724a0791cd4..0ac7402630a3af96993de03e0b32943a0a748e9c 100644 (file)
@@ -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
 }