diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-13 11:59:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-13 11:59:41 +0100 |
commit | c5abd30c1fa9fa3dd51457d179c195e9419f8da0 (patch) | |
tree | 5933d51d337cd6852a1cc8c3fafa89884c40ade9 | |
parent | c42a94430c877ffed014b791163715b31846fe68 (diff) | |
download | vulns-c5abd30c1fa9fa3dd51457d179c195e9419f8da0.tar.gz |
cve_* scripts: minor shellcheck fixes
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rwxr-xr-x | scripts/cve_create | 3 | ||||
-rwxr-xr-x | scripts/cve_update | 1 |
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}" |