diff --git a/scripts/common-functions b/scripts/common-functions index 161007f..f5b8aee 100644 --- a/scripts/common-functions +++ b/scripts/common-functions @@ -68,7 +68,7 @@ cve2sha() { local arg=$1 local REFRESH=$2 - sha="$(cd $VULNS_GIT; [ -n "$REFRESH" ] && git pull >/dev/null 2>&1; scripts/cve_search $arg 2>/dev/null | cut -d" " -f7)" + sha="$(cd $VULNS_GIT; [ -n "$REFRESH" ] && git pull >/dev/null 2>&1; scripts/cve_search $arg 2>/dev/null | head -n1 | cut -d" " -f7)" if [ $(echo $sha | wc -c) -eq 41 ] then