diff options
author | SiemKorteweg <Siem.Korteweg@qnh.nl> | 2015-10-10 14:25:14 +0300 |
---|---|---|
committer | SiemKorteweg <Siem.Korteweg@qnh.nl> | 2015-10-10 14:25:14 +0300 |
commit | 0c48fc3880551d862063e56a029ce43082df376a (patch) | |
tree | d57f59a582b3d457fccd0dad6f32b3513ebf294f /include/report | |
parent | c0378f38f517e916b141a8bc5049eb742e66d48f (diff) |
Optimized use of cat, grep and awk.
Detection of duplicate entries in /etc/hosts is now more robust.
On CentOS7 the SERVICE_MANAGER is detected correctly.
Diffstat (limited to 'include/report')
-rw-r--r-- | include/report | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/report b/include/report index 4f1ed09a..3d959bb8 100644 --- a/include/report +++ b/include/report @@ -102,7 +102,7 @@ if [ "${CUSTOM_URL_APPEND}" = "" ]; then CUSTOM_URL_APPEND="/"; fi # Show warnings from logfile - SWARNINGS=`cat ${LOGFILE} | grep -i 'warning:' | sed 's/ /!space!/g'` + SWARNINGS=`grep -i 'warning:' ${LOGFILE} | sed 's/ /!space!/g'` if [ "${SWARNINGS}" = "" ]; then echo " ${OK}No warnings${NORMAL}"; echo "" |