Skip to content

Commit

Permalink
Fix shellcheck issues
Browse files Browse the repository at this point in the history
  • Loading branch information
p4cx committed Dec 2, 2020
1 parent 4ff0873 commit 97d2a34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/S30_version_vulnerability_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ print_vul() {
done

if [[ -f "$VUL_FEED_CVSS_DB" ]]; then
F_LINE_ARR=( $FIRST_LINE )
CVSS_VALUES="$(grep ${F_LINE_ARR[0]} $VUL_FEED_CVSS_DB)"
CVSS_VALUES="$(grep "$(echo "$FIRST_LINE" | cut -d' ' -f 1)" "$VUL_FEED_CVSS_DB")"
CVSS2="$(echo "$CVSS_VALUES" | cut -f 2 -d ",")"
CVSS3="$(echo "$CVSS_VALUES" | cut -f 3 -d ",")"
CVSS_STRING=""
Expand Down

0 comments on commit 97d2a34

Please sign in to comment.