From 561437d667791fe3a15d6020299fc9e2c6aa2237 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Mon, 8 Feb 2021 10:24:19 -0700 Subject: [PATCH] fix(RESTORE): fix printf err --- backup/restore.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/restore.sh b/backup/restore.sh index 656549f..03889ed 100644 --- a/backup/restore.sh +++ b/backup/restore.sh @@ -227,7 +227,7 @@ while [ $# -gt 0 ]; do restoreRspamd=0 ;; *) - printf "\n%Unknown option: %s\n" "$err" "$1" + printf "\n%sUnknown option: %s\n" "$err" "$1" printf "Use '--help' for valid options.%s\n\n" "$norm" exit 1 ;; @@ -252,7 +252,7 @@ if [ ! -f "$mcDockerCompose" ]; then consoleError '1' "docker-compose configuration ($mcDockerCompose) 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.' +\cd "${mcConfig%/*}" || consoleError '4' 'Cannot change to mailcow directory as determined from mailcow.conf location.' ### read mailcow.conf and import vars # shellcheck source=./mailcow.conf.shellcheck