Increase upgrades-status-notify verbosity
Print errors on stderr. yum_output variable isn't used anywhere, so not capturing stderr wont be a problem either.
This commit is contained in:
parent
d602da4ae9
commit
ce9f6b2fa7
@ -15,7 +15,7 @@ if [ -e /etc/system-release ]; then
|
|||||||
yum=yum
|
yum=yum
|
||||||
fi
|
fi
|
||||||
# shellcheck disable=SC2034
|
# shellcheck disable=SC2034
|
||||||
yum_output="$($yum -yq check-update 2>&1)"
|
yum_output="$($yum -yq check-update)"
|
||||||
exit_code="$?"
|
exit_code="$?"
|
||||||
[ "$exit_code" -eq 100 ] && echo "false" && exit 0
|
[ "$exit_code" -eq 100 ] && echo "false" && exit 0
|
||||||
[ "$exit_code" -eq 0 ] && echo "true"
|
[ "$exit_code" -eq 0 ] && echo "true"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
upgrades_installed="$(/usr/lib/qubes/upgrades-installed-check 2>&1)"
|
upgrades_installed="$(/usr/lib/qubes/upgrades-installed-check)"
|
||||||
|
|
||||||
if [ "$upgrades_installed" = "true" ]; then
|
if [ "$upgrades_installed" = "true" ]; then
|
||||||
/usr/lib/qubes/qrexec-client-vm dom0 qubes.NotifyUpdates /bin/sh -c 'echo 0'
|
/usr/lib/qubes/qrexec-client-vm dom0 qubes.NotifyUpdates /bin/sh -c 'echo 0'
|
||||||
|
Loading…
Reference in New Issue
Block a user