diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-06-30 21:38:05 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-06-30 21:38:05 +0300 |
commit | 76c3ea0edb43d7977e1085ddba5dfc687e7eb12a (patch) | |
tree | a5d7840523b16309abf1d0e41dc95c6b493dd413 /include/functions | |
parent | cb77d5a3f7d5018fc8f4f5c88e80b8273fbb735e (diff) |
Fall back to echo if ECHOCMD is empty early during execution of program
Diffstat (limited to 'include/functions')
-rw-r--r-- | include/functions | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/functions b/include/functions index 3d43f7c1..26d5d502 100644 --- a/include/functions +++ b/include/functions @@ -660,9 +660,9 @@ RemoveTempFiles LogText "${PROGRAM_NAME} ended with exit code 1." if [ $# -eq 1 ]; then - ${ECHOCMD} "" - ${ECHOCMD} "${RED}Fatal error${NORMAL}: ${WHITE}$1${NORMAL}" - ${ECHOCMD} "" + ${ECHOCMD:-echo} "" + ${ECHOCMD:-echo} "${RED}Fatal error${NORMAL}: ${WHITE}$1${NORMAL}" + ${ECHOCMD:-echo} "" fi exit 1 } |