]> gitweb.fluxo.info Git - hydra.git/commitdiff
BASEDIR defaulting to /tmp
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 22 Jul 2012 19:50:20 +0000 (16:50 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 22 Jul 2012 19:50:20 +0000 (16:50 -0300)
lib/hydra/tmpfile

index 0ac7402630a3af96993de03e0b32943a0a748e9c..371f5f8360b7007d861045e6bc719dc050c8751d 100644 (file)
@@ -3,8 +3,7 @@
 # Setup a temporary file
 function hydra_set_tmpfile {
   if [ -z "$BASEDIR" ]; then
-    echo "Please set BASEDIR before creating a tmp file"
-    exit 1
+    BASEDIR="/tmp"
   fi
 
   if [ -z "$1" ]; then