Skip to content
Snippets Groups Projects
Commit 6a6b0ca8 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Include list of glsas in status output

parent 5ac4dba4
No related branches found
No related tags found
No related merge requests found
...@@ -23,8 +23,7 @@ grep '^[0-9][0-9]*-[0-9][0-9] \[[^AU]\]' < $GLSA_TMP > $GREP_TMP 2> $ERR_TMP ...@@ -23,8 +23,7 @@ grep '^[0-9][0-9]*-[0-9][0-9] \[[^AU]\]' < $GLSA_TMP > $GREP_TMP 2> $ERR_TMP
RC=$? RC=$?
case $RC in case $RC in
0) echo CRITICAL - glsa-check found problems: 0) echo CRITICAL - glsa-check found problems: `awk '{ print $0 " --- " }' $GREP_TMP`
cat $GREP_TMP
exit 2;; exit 2;;
1) echo OK - no GLSA-related problems found 1) echo OK - no GLSA-related problems found
exit 0;; exit 0;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment