fix(RESTORE): fix printf err

This commit is contained in:
Asif Bacchus 2021-02-08 10:24:19 -07:00
parent e4cd29fd42
commit 561437d667

View File

@ -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