From 78e1ed25395c6cb7ed7b2f07ca04fc0b9d248f46 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 8 Feb 2021 10:28:21 -0700 Subject: [PATCH] perf(RESTORE): remove duplicate backup-location existence check --- backup/restore.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backup/restore.sh b/backup/restore.sh index 91e9c96..e830396 100644 --- a/backup/restore.sh +++ b/backup/restore.sh @@ -251,11 +251,9 @@ fi if [ ! -f "$mcDockerCompose" ]; then consoleError '1' "docker-compose configuration ($mcDockerCompose) cannot be found." fi -# backup location? +# forgot to set backup location? if [ -z "$backupLocation" ]; then consoleError '1' "'--backup-location' cannot be unspecified or null/empty." -elif [ ! -d "$backupLocation" ]; then - consoleError '1' "${backupLocation}: directory cannot be found." fi # change to mailcow directory so commands execute properly \cd "${mcConfig%/*}" || consoleError '4' 'Cannot change to mailcow directory as determined from mailcow.conf location.'