sequencer - fix shellcheck warnings
This commit is contained in:
@@ -905,7 +905,7 @@ addConf() {
|
|||||||
else
|
else
|
||||||
"${transferCmd}" "${source}" >> "${dest}"
|
"${transferCmd}" "${source}" >> "${dest}"
|
||||||
fi
|
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
|
return 0
|
||||||
else
|
else
|
||||||
sqr::echo "nok"
|
sqr::echo "nok"
|
||||||
@@ -913,7 +913,7 @@ addConf() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
sqr::echo -e "ok \n [i] no change requested"
|
sqr::printf 'ok\n [i] %s' "no change requested"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# add configuration to missingConf file
|
# add configuration to missingConf file
|
||||||
@@ -1340,11 +1340,11 @@ execute() {
|
|||||||
|
|
||||||
if ! quiet ; then
|
if ! quiet ; then
|
||||||
exists -f "step_${1}_alias" && stepAlias=$("step_${1}_alias")
|
exists -f "step_${1}_alias" && stepAlias=$("step_${1}_alias")
|
||||||
printf "\n [%3d] " "${1}"
|
printf '\n [%3d] ' "${1}"
|
||||||
if [ -n "${stepAlias}" ]; then
|
if [ -n "${stepAlias}" ]; then
|
||||||
echo -en "${col_orange}${stepAlias}${col_off}${_sqr_savePosAlias}"
|
echo -en "${col_orange}${stepAlias}${col_off}${_sqr_savePosAlias}"
|
||||||
# Only add newline if step info() available
|
# 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
|
else
|
||||||
echo -en "${_sqr_savePosExe}"
|
echo -en "${_sqr_savePosExe}"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user