From e289f37be2b92b0663cae9a38d84c21497c299cc Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Fri, 12 Aug 2022 18:05:33 +0200 Subject: [PATCH] sequencer - addconf: allow empty source and fix printf missing newline --- sequencer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sequencer.sh b/sequencer.sh index 674bc6a..0e803a4 100755 --- a/sequencer.sh +++ b/sequencer.sh @@ -866,7 +866,7 @@ addConf() { esac done - local source="${1:?}" + local source="${1:-}" local dest="${2:?}" if [ "${transferCmd}" == "cat" ] && [ ! -f "${source}" ] ; then @@ -905,7 +905,7 @@ addConf() { else "${transferCmd}" "${source}" >> "${dest}" fi - sqr::printf 'ok\n [i] %s' "Existing config saved to ${addConfBackup}" + sqr::printf 'ok\n [i] %s\n' "Existing config saved to ${addConfBackup}" return 0 else sqr::echo "nok"