aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-18 11:23:12 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-18 11:23:12 +0100
commitd60e4dae3dc5265042f92d4632ab719a4231cc5b (patch)
treeaf6e1a12412c7d6a5a85ea9d7f10bda6da508980
parent9359ab004dac40ceecb748ed6308a20beecba464 (diff)
downloadvulns-d60e4dae3dc5265042f92d4632ab719a4231cc5b.tar.gz
scripts/cve_update: don't set unbound checking until AFTER we check some things.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rwxr-xr-xscripts/cve_update6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/cve_update b/scripts/cve_update
index cb64cf8d..f8c874bc 100755
--- a/scripts/cve_update
+++ b/scripts/cve_update
@@ -23,9 +23,6 @@
# bippy
-# don't use unset variables
-set -o nounset
-
# set where the tool was run from,
# the name of our script,
# and the git version of it
@@ -42,6 +39,9 @@ if [[ "${TMPDIR}" == "" ]]; then
exit 1
fi
+# don't use unset variables
+set -o nounset
+
cd "${DIR}"/../ || exit 1
for id in cve/published/*/*.sha1 ; do