Skip to content

Commit

Permalink
fixing security patch counting
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Schubert <[email protected]>
  • Loading branch information
pirat013 committed Oct 15, 2024
1 parent 9598d31 commit 4fdd60f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zypper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Contributer: Gabriele Puliti <[email protected]>
# Based on yum.sh by Slawomir Gonet <[email protected]>

set -o errexit # exit on first error
#set -o errexit # exit on first error, doesn't work on all test systems
set -o nounset # fail if unset variables
set -o pipefail # reflect exit status

Expand Down Expand Up @@ -141,7 +141,7 @@ get_pending_security_patches() {
echo "0"
else
echo "$1" |
grep security |
grep "| security" |
wc -l
fi
} |
Expand All @@ -154,7 +154,7 @@ get_pending_security_important_patches() {
echo "0"
else
echo "$1" |
grep security |
grep "| security" |
grep important |
wc -l
fi
Expand Down

0 comments on commit 4fdd60f

Please sign in to comment.