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,7 +1792,6 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
ReportDetails() {
|
ReportDetails() {
|
||||||
while [ $# -ge 1 ]; do
|
|
||||||
TEST_DESCRIPTION=""
|
TEST_DESCRIPTION=""
|
||||||
TEST_FIELD=""
|
TEST_FIELD=""
|
||||||
TEST_ID=""
|
TEST_ID=""
|
||||||
|
@ -1800,6 +1799,7 @@
|
||||||
TEST_PREFERRED_VALUE=""
|
TEST_PREFERRED_VALUE=""
|
||||||
TEST_SERVICE=""
|
TEST_SERVICE=""
|
||||||
TEST_VALUE=""
|
TEST_VALUE=""
|
||||||
|
while [ $# -ge 1 ]; do
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
--description)
|
--description)
|
||||||
|
@ -1821,7 +1821,7 @@
|
||||||
;;
|
;;
|
||||||
--service)
|
--service)
|
||||||
shift
|
shift
|
||||||
TEST_SERVICE="service:$1;"
|
TEST_SERVICE="$1"
|
||||||
;;
|
;;
|
||||||
--test)
|
--test)
|
||||||
shift
|
shift
|
||||||
|
@ -1831,7 +1831,6 @@
|
||||||
shift
|
shift
|
||||||
TEST_VALUE="value:$1;"
|
TEST_VALUE="value:$1;"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo "INVALID OPTION (ReportDetails): $1"
|
echo "INVALID OPTION (ReportDetails): $1"
|
||||||
ExitFatal
|
ExitFatal
|
||||||
|
|
Loading…
Reference in New Issue