fixed inverted logic issue in upgrades-installed-check
928013f819 (commitcomment-13968627)
This commit is contained in:
parent
aeb6d188cc
commit
d5acf83916
@ -11,7 +11,8 @@ if [ -e /etc/system-release ]; then
|
|||||||
## Fedora
|
## Fedora
|
||||||
yum_output="$(yum -q check-update 2>&1)"
|
yum_output="$(yum -q check-update 2>&1)"
|
||||||
exit_code="$?"
|
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
|
else
|
||||||
## Debian
|
## Debian
|
||||||
apt_get_output="$(LANG="C" apt-get -s upgrade 2>&1)"
|
apt_get_output="$(LANG="C" apt-get -s upgrade 2>&1)"
|
||||||
|
Loading…
Reference in New Issue
Block a user