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:
authormboelen <michael@cisofy.com>2014-12-04 00:49:22 +0300
committermboelen <michael@cisofy.com>2014-12-04 00:49:22 +0300
commitdf0da8b0c4beb6e4dccbece8c745736295058da7 (patch)
tree80f227134e121331fb2973d29b9eb20750411199 /include/osdetection
parent26a6e33637eaee1aec4aa831cd1a89459a17ced2 (diff)
Improve output on NetBSD by using a non-break version of echo as well
Diffstat (limited to 'include/osdetection')
-rw-r--r--include/osdetection3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osdetection b/include/osdetection
index c8e0a371..b4f94fd6 100644
--- a/include/osdetection
+++ b/include/osdetection
@@ -357,6 +357,8 @@
esac
# Set correct echo binary and parameters after detecting operating system
+ ECHONB=""
+
case ${OS} in
"AIX") ECHOCMD="echo" ;;
"MacOS") ECHOCMD="echo" ;;
@@ -369,6 +371,7 @@
*) ECHOCMD="echo -e" ;;
esac
;;
+ "NetBSD") ECHOCMD="echo -e"; ECHONB="echo -n" ;;
*) ECHOCMD="echo -e" ;;
esac