Fix getops OPTARG for custom checks

Custom checks in folder are not being sourced. `./prowler -c extra800 -x custom` results in empty EXTERNAL_CHECKS_PATH variables due to missing colon.

The fix was tested in both OSX and toniblyx/prowler:latest Docker.

Regards,
This commit is contained in:
Joaquin Rinaudo
2020-08-26 23:59:02 +02:00
committed by GitHub
parent 9647d80fc1
commit 7868904c3b

View File

@@ -96,7 +96,7 @@ USAGE:
exit
}
while getopts ":hlLkqp:r:c:g:f:m:M:E:enbVsSxI:A:R:T:w:" OPTION; do
while getopts ":hlLkqp:r:c:g:f:m:M:E:x:enbVsSI:A:R:T:w:" OPTION; do
case $OPTION in
h )
usage