mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-11 14:33:47 -05:00
_execute_: ensure quiet mode doesn't print output
This commit is contained in:
@@ -63,7 +63,10 @@ _execute_() {
|
|||||||
fi
|
fi
|
||||||
elif ${VERBOSE}; then
|
elif ${VERBOSE}; then
|
||||||
if eval "${CMD}"; then
|
if eval "${CMD}"; then
|
||||||
if "${ECHO_RESULT}"; then
|
if "${QUIET_RESULT}"; then
|
||||||
|
VERBOSE=${SAVE_VERBOSE}
|
||||||
|
return 0
|
||||||
|
elif "${ECHO_RESULT}"; then
|
||||||
echo "${EXECUTE_MESSAGE}"
|
echo "${EXECUTE_MESSAGE}"
|
||||||
elif "${SUCCESS_RESULT}"; then
|
elif "${SUCCESS_RESULT}"; then
|
||||||
success "${EXECUTE_MESSAGE}"
|
success "${EXECUTE_MESSAGE}"
|
||||||
@@ -304,6 +307,7 @@ _seekConfirmation_() {
|
|||||||
# something
|
# something
|
||||||
# fi
|
# fi
|
||||||
|
|
||||||
|
local yn
|
||||||
input "${1:-}"
|
input "${1:-}"
|
||||||
if "${FORCE}"; then
|
if "${FORCE}"; then
|
||||||
debug "Forcing confirmation with '--force' flag set"
|
debug "Forcing confirmation with '--force' flag set"
|
||||||
|
|||||||
Reference in New Issue
Block a user