summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-07-22 16:50:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-07-22 16:50:20 -0300
commit1d461f883e9f9667afdbf49e00f5dd7b8ad08c93 (patch)
tree0f96fd008ff45569334c8493f1c8bf1fed619ae8 /lib
parente69981a743b7263be4892cf8c338ce9a41afe409 (diff)
downloadhydra-1d461f883e9f9667afdbf49e00f5dd7b8ad08c93.tar.gz
hydra-1d461f883e9f9667afdbf49e00f5dd7b8ad08c93.tar.bz2
BASEDIR defaulting to /tmp
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/tmpfile3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/hydra/tmpfile b/lib/hydra/tmpfile
index 0ac7402..371f5f8 100644
--- a/lib/hydra/tmpfile
+++ b/lib/hydra/tmpfile
@@ -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