sequencer - fix shellcheck warnings

This commit is contained in:
2022-06-29 10:35:20 +02:00
parent d5058d31cc
commit c50b5fd647

View File

@@ -905,7 +905,7 @@ addConf() {
else
"${transferCmd}" "${source}" >> "${dest}"
fi
sqr::echo -e "ok \n [i] Existing config saved to ${addConfBackup}"
sqr::printf 'ok\n [i] %s' "Existing config saved to ${addConfBackup}"
return 0
else
sqr::echo "nok"
@@ -913,7 +913,7 @@ addConf() {
fi
fi
else
sqr::echo -e "ok \n [i] no change requested"
sqr::printf 'ok\n [i] %s' "no change requested"
fi
# add configuration to missingConf file
@@ -1340,11 +1340,11 @@ execute() {
if ! quiet ; then
exists -f "step_${1}_alias" && stepAlias=$("step_${1}_alias")
printf "\n [%3d] " "${1}"
printf '\n [%3d] ' "${1}"
if [ -n "${stepAlias}" ]; then
echo -en "${col_orange}${stepAlias}${col_off}${_sqr_savePosAlias}"
# Only add newline if step info() available
exists -f "step_${1}_info" && printf "\n%s" "${_sqr_indentExe}"
exists -f "step_${1}_info" && printf '\n%s' "${_sqr_indentExe}"
else
echo -en "${_sqr_savePosExe}"
fi