From a70f1b6c7aad46f5840b926558a5a1ab1a4cdd09 Mon Sep 17 00:00:00 2001 From: aristo9999999999 <61184520+aristo9999999999@users.noreply.github.com> Date: Wed, 10 Jan 2024 22:17:55 -0600 Subject: [PATCH] Update mirror.sh to fix DELAY Override 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 --- vulnz/src/docker/scripts/mirror.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulnz/src/docker/scripts/mirror.sh b/vulnz/src/docker/scripts/mirror.sh index b13f250f..fb714aea 100755 --- a/vulnz/src/docker/scripts/mirror.sh +++ b/vulnz/src/docker/scripts/mirror.sh @@ -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