From eded02cfde6a48270b975d8390dac44b3ad22f35 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 3 May 2016 14:57:53 +0200 Subject: Rewritten counters and dealing with values --- include/tests_shells | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/tests_shells') diff --git a/include/tests_shells b/include/tests_shells index 2295f768..c267cf2b 100644 --- a/include/tests_shells +++ b/include/tests_shells @@ -79,12 +79,12 @@ CSSHELLS=0; CSSHELLS_ALL=0 Display --indent 2 --text "- Checking shells from /etc/shells" for I in ${SSHELLS}; do - CSSHELLS_ALL=`expr ${CSSHELLS_ALL} + 1` + CSSHELLS_ALL=$((CSSHELLS_ALL + 1)) Report "available_shell[]=${I}" # YYY add check for symlinked shells if [ -f ${I} ]; then LogText "Found installed shell: ${I}" - CSSHELLS=`expr ${CSSHELLS} + 1` + CSSHELLS=$((CSSHELLS + 1)) else LogText "Shell ${I} not installed. Probably a dummy or non existing shell." fi @@ -125,7 +125,7 @@ for I in ${FIND}; do LogText "Output: ${I}" Report "session_timeout_value[]=${I}" - N=`expr ${N} + 1` + N=$((N + 1)) done if [ ${N} -eq 1 ]; then LogText "Result: found TMOUT value configured in /etc/profile" @@ -142,7 +142,7 @@ for I in ${FIND2}; do LogText "Output: ${I}" if [ "${I}" = "readonly" -o "${I}" = "typeset" ]; then - N=`expr ${N} + 1` + N=$((N + 1)) fi done if [ ${N} -gt 0 ]; then @@ -172,7 +172,7 @@ for I in ${FIND}; do LogText "Output: ${I}" Report "session_timeout_value[]=${I}" - N=`expr ${N} + 1` + N=$((N + 1)) done if [ ${N} -eq 1 ]; then LogText "Result: found TMOUT value configured in one of the files in /etc/profile.d directory" @@ -189,7 +189,7 @@ for I in ${FIND2}; do LogText "Output: ${I}" if [ "${I}" = "readonly" -o "${I}" = "typeset" ]; then - N=`expr ${N} + 1` + N=$((N + 1)) fi done if [ ${N} -gt 0 ]; then -- cgit v1.2.3