Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-06-30 21:38:05 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-06-30 21:38:05 +0300
commit76c3ea0edb43d7977e1085ddba5dfc687e7eb12a (patch)
treea5d7840523b16309abf1d0e41dc95c6b493dd413 /include
parentcb77d5a3f7d5018fc8f4f5c88e80b8273fbb735e (diff)
Fall back to echo if ECHOCMD is empty early during execution of program
Diffstat (limited to 'include')
-rw-r--r--include/functions6
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
}