From 0c48fc3880551d862063e56a029ce43082df376a Mon Sep 17 00:00:00 2001 From: SiemKorteweg Date: Sat, 10 Oct 2015 13:25:14 +0200 Subject: 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. --- include/report | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/report') 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 "" -- cgit v1.2.3