mirror of https://github.com/CISOfy/lynis.git
Don't override variables of ReportDetails functions on every parameter
This commit is contained in:
parent
114d95c475
commit
a1ebc18a76
|
@ -1792,14 +1792,14 @@
|
|||
################################################################################
|
||||
|
||||
ReportDetails() {
|
||||
TEST_DESCRIPTION=""
|
||||
TEST_FIELD=""
|
||||
TEST_ID=""
|
||||
TEST_OTHER=""
|
||||
TEST_PREFERRED_VALUE=""
|
||||
TEST_SERVICE=""
|
||||
TEST_VALUE=""
|
||||
while [ $# -ge 1 ]; do
|
||||
TEST_DESCRIPTION=""
|
||||
TEST_FIELD=""
|
||||
TEST_ID=""
|
||||
TEST_OTHER=""
|
||||
TEST_PREFERRED_VALUE=""
|
||||
TEST_SERVICE=""
|
||||
TEST_VALUE=""
|
||||
|
||||
case $1 in
|
||||
--description)
|
||||
|
@ -1821,7 +1821,7 @@
|
|||
;;
|
||||
--service)
|
||||
shift
|
||||
TEST_SERVICE="service:$1;"
|
||||
TEST_SERVICE="$1"
|
||||
;;
|
||||
--test)
|
||||
shift
|
||||
|
@ -1831,7 +1831,6 @@
|
|||
shift
|
||||
TEST_VALUE="value:$1;"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "INVALID OPTION (ReportDetails): $1"
|
||||
ExitFatal
|
||||
|
|
Loading…
Reference in New Issue