mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 15:54:09 +02:00
Use different variable in for loop
This commit is contained in:
parent
1bd77beb39
commit
00ad535c6b
@ -2802,9 +2802,9 @@
|
|||||||
STRING=""
|
STRING=""
|
||||||
RETVAL=1
|
RETVAL=1
|
||||||
# Check if this test is on the list to skip
|
# Check if this test is on the list to skip
|
||||||
for I in ${SKIP_TESTS}; do
|
for item in ${SKIP_TESTS}; do
|
||||||
STRING=$(echo $1 | tr '[:lower:]' '[:upper:]')
|
STRING=$(echo $1 | tr '[:lower:]' '[:upper:]')
|
||||||
if [ "${I}" = "${STRING}" ]; then RETVAL=0; LogText "Atomic test ($1) skipped by configuration (skip-test)"; fi
|
if [ "${item}" = "${STRING}" ]; then RETVAL=0; LogText "Atomic test ($1) skipped by configuration (skip-test)"; fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
ReportException "SkipAtomicTest()" "Function called without right number of arguments (1)"
|
ReportException "SkipAtomicTest()" "Function called without right number of arguments (1)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user