From 6c2bd6b3dc1fa41bc224da5d694d435b3ee49358 Mon Sep 17 00:00:00 2001 From: Aristo <61184520+aristo9999999999@users.noreply.github.com> Date: Thu, 11 Jan 2024 04:41:36 -0600 Subject: [PATCH] Update mirror.sh to fix DELAY Override (#124) 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 b13f250..fb714ae 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