summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 17:33:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 17:33:46 -0300
commit587ec210172a05cc5944adcb5fe21145af011d52 (patch)
treecac4499886f5be597edf5e2f5224ff5de653e9c2 /lib
parentecaba00e93282936d088c6e10121bccc5bc22f99 (diff)
downloadhydra-587ec210172a05cc5944adcb5fe21145af011d52.tar.gz
hydra-587ec210172a05cc5944adcb5fe21145af011d52.tar.bz2
Minor fix for restore method
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/backup2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hydra/backup b/lib/hydra/backup
index d2208ff..a92782e 100644
--- a/lib/hydra/backup
+++ b/lib/hydra/backup
@@ -44,7 +44,7 @@ function hydra_backup_environment {
fi
fi
- if [ -d "$RESTOREDIR" ]; then
+ if [ -d "$RESTOREDIR" ] && [ "$METHOD" != "restore" ]; then
echo "Restoration folder $RESTOREDIR already exists"
exit 1
fi