aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/backup5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/hydra/backup b/lib/hydra/backup
index 210139b..260446d 100644
--- a/lib/hydra/backup
+++ b/lib/hydra/backup
@@ -36,10 +36,7 @@ function hydra_backup_environment {
exit 1
fi
else
- if [ "$METHOD" == "restore" ]; then
- echo "Invalid backup method 'restore'"
- exit 1
- elif [ -d "$BACKUPDIR/$METHOD" ]; then
+ if [ -d "$BACKUPDIR/$METHOD" ]; then
BACKUPDIR="$BACKUPDIR/$METHOD"
else
echo "Backup folder for $METHOD not found at $BACKUPDIR"