diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-03 15:57:53 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-03 15:57:53 +0300 |
commit | eded02cfde6a48270b975d8390dac44b3ad22f35 (patch) | |
tree | f5aa20ddaade51615a4777a3642aadf2e4e546f7 /include/tests_shells | |
parent | eda79af419d4d61ab6cc078d0c8f74bb8c031b98 (diff) |
Rewritten counters and dealing with values
Diffstat (limited to 'include/tests_shells')
-rw-r--r-- | include/tests_shells | 12 |
1 files changed, 6 insertions, 6 deletions
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 |