fixed inverted logic issue in upgrades-installed-check

928013f819 (commitcomment-13968627)
This commit is contained in:
Patrick Schleizer 2015-11-11 16:10:23 +00:00
parent aeb6d188cc
commit d5acf83916
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -11,7 +11,8 @@ if [ -e /etc/system-release ]; then
## Fedora
yum_output="$(yum -q check-update 2>&1)"
exit_code="$?"
[ "$exit_code" -eq 100 ] && echo "true" || echo "false"
[ "$exit_code" -eq 100 ] && echo "false" && exit 0
[ "$exit_code" -eq 0 ] && echo "true"
else
## Debian
apt_get_output="$(LANG="C" apt-get -s upgrade 2>&1)"