aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-13 11:59:41 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-13 11:59:41 +0100
commitc5abd30c1fa9fa3dd51457d179c195e9419f8da0 (patch)
tree5933d51d337cd6852a1cc8c3fafa89884c40ade9
parentc42a94430c877ffed014b791163715b31846fe68 (diff)
downloadvulns-c5abd30c1fa9fa3dd51457d179c195e9419f8da0.tar.gz
cve_* scripts: minor shellcheck fixes
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rwxr-xr-xscripts/cve_create3
-rwxr-xr-xscripts/cve_update1
2 files changed, 1 insertions, 3 deletions
diff --git a/scripts/cve_create b/scripts/cve_create
index bb80af00..62afb3d2 100755
--- a/scripts/cve_create
+++ b/scripts/cve_create
@@ -33,7 +33,6 @@ set -o nounset
# and the git version of it
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SCRIPT=${0##*/}
-SCRIPT_VERSION=$(cd "${DIR}" && git show -s --abbrev-commit --abbrev=12 --pretty=format:"%h")
help() {
echo "${SCRIPT} [GIT_SHA]"
@@ -93,7 +92,7 @@ mv "${ID}" "${PUBLISHED_DIR}"
echo "${GIT_SHA_FULL}" > "${PUBLISHED_DIR}/${ID}.sha1"
# write the new json and mbox entry out, using bippy
-${DIR}/bippy --cve=${ID} --sha=${GIT_SHA_FULL} --json="${PUBLISHED_DIR}/${ID}.json" --mbox="${PUBLISHED_DIR}/${ID}.mbox"
+"${DIR}"/bippy --cve="${ID}" --sha="${GIT_SHA_FULL}" --json="${PUBLISHED_DIR}/${ID}.json" --mbox="${PUBLISHED_DIR}/${ID}.mbox"
# say all is good, and give the id
echo "CVE id ${ID} was allocated for git commit ${GIT_SHA_FULL}"
diff --git a/scripts/cve_update b/scripts/cve_update
index f519d683..5fdcb466 100755
--- a/scripts/cve_update
+++ b/scripts/cve_update
@@ -31,7 +31,6 @@ set -o nounset
# and the git version of it
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SCRIPT=${0##*/}
-SCRIPT_VERSION=$(cd "${DIR}" && git show -s --abbrev-commit --abbrev=12 --pretty=format:"%h")
help() {
echo "${SCRIPT}"