diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-09-08 22:04:17 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-09-08 22:04:17 +0300 |
commit | 82ededed318e6adcc97d2495237d3c3b6c09cd04 (patch) | |
tree | 7dcd3b4f1e8b25335b3c128972fb0be473fc5fa4 /include/tests_time | |
parent | 81d8486cb07d2d68aa71c52df363bb70aa226f4d (diff) |
Style improvements and command replacements
Diffstat (limited to 'include/tests_time')
-rw-r--r-- | include/tests_time | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tests_time b/include/tests_time index 28a1b68c..097fc400 100644 --- a/include/tests_time +++ b/include/tests_time @@ -274,7 +274,7 @@ Register --test-no TIME-3120 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check unreliable NTP peers" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Checking unreliable ntp peers" - FIND=`${NTPQBINARY} -p -n | ${EGREPBINARY} "^(-|#)" | ${AWKBINARY} '{ print $1 }' | sed 's/^-//g'` + FIND=`${NTPQBINARY} -p -n | ${EGREPBINARY} "^(-|#)" | ${AWKBINARY} '{ print $1 }' | ${SEDBINARY} 's/^-//g'` if [ "${FIND}" = "" ]; then Display --indent 2 --text "- Checking unreliable ntp peers" --result "${STATUS_NONE}" --color GREEN LogText "Result: No unreliable peers found" @@ -301,7 +301,7 @@ FIND2=$(${NTPQBINARY} -p -n | ${GREPBINARY} '^*' | ${AWKBINARY} '{ print $1 }') if [ -z "${FIND}" -a ! -z "${FIND2}" ]; then Display --indent 2 --text "- Checking selected time source" --result "${STATUS_OK}" --color GREEN - FIND2=`echo ${FIND2} | sed 's/*//g'` + FIND2=`echo ${FIND2} | ${SEDBINARY} 's/*//g'` LogText "Result: Found selected time source (value: ${FIND2})" else Display --indent 2 --text "- Checking selected time source" --result "${STATUS_WARNING}" --color RED @@ -328,7 +328,7 @@ Display --indent 2 --text "- Checking time source candidates" --result "${STATUS_OK}" --color GREEN LogText "Result: Found one or more candidates to synchronize time with." for I in ${FIND}; do - I=$(echo ${I} | sed 's/+//g') + I=$(echo ${I} | ${SEDBINARY} 's/+//g') LogText "Candidate found: ${I}" done fi @@ -350,7 +350,7 @@ Display --indent 2 --text "- Checking falsetickers" --result "${STATUS_NONE}" --color YELLOW LogText "Result: Found one or more falsetickers (items preceeding with an 'x')" for I in ${FIND}; do - I=$(echo ${I} | sed 's/x//g') + I=$(echo ${I} | ${SEDBINARY} 's/x//g') LogText "Falseticker found: ${I}" Report "ntp_falseticker[]=${I}" done |