diff --git a/zypper.sh b/zypper.sh index b7c16dc..8a9d016 100755 --- a/zypper.sh +++ b/zypper.sh @@ -5,7 +5,7 @@ # Contributer: Gabriele Puliti # Based on yum.sh by Slawomir Gonet -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 @@ -141,7 +141,7 @@ get_pending_security_patches() { echo "0" else echo "$1" | - grep security | + grep "| security" | wc -l fi } | @@ -154,7 +154,7 @@ get_pending_security_important_patches() { echo "0" else echo "$1" | - grep security | + grep "| security" | grep important | wc -l fi