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

Fixed handling of $? vs $RC.

parent de1b6f87
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ glsa-check -l -n > $GLSA_TMP 2> $ERR_TMP
RC=$?
if [ $RC -ne 0 ]
then
echo UNKNOWN - glsa-check returned $?
echo UNKNOWN - glsa-check returned $RC
cat $ERR_TMP
exit 3
fi
......@@ -43,7 +43,7 @@ case $RC in
exit 2;;
1) echo "OK - no GLSA-related problems found. | problems=0, packages=0"
exit 0;;
*) echo UNKNOWN - grep returned $?
*) echo UNKNOWN - grep returned $RC
cat $ERR_TMP
exit 3;;
esac
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment