Skip to content

Commit

Permalink
Update mirror.sh to fix DELAY Override
Browse files Browse the repository at this point in the history
This primarily fix situation where DELAY override is incorrect.

Previous behaviors:
* If DELAY is unset, will set DELAY_ARG to "--delay=" (empty string after equal sign) 
* If DELAY is set, DELAY_ARG will be set to "--delay=10000" if NVD_API_KEY unspecified and will not correctly set DELAY value
  • Loading branch information
aristo9999999999 authored Jan 11, 2024
1 parent e4ffbd7 commit a70f1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vulnz/src/docker/scripts/mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ -z $NVD_API_KEY ]; then
DELAY_ARG="--delay=10000"
fi

if [ -z $DELAY ]; then
if [ -n "${DELAY}" ]; then
DELAY_ARG="--delay=$DELAY"
fi

Expand Down

0 comments on commit a70f1b6

Please sign in to comment.