Skip to content

Commit bbea997

Browse files
committed
Simplify logging apt-get update output
The 'apt_get_update_output' variable is unused, so avoid complexity with saving apt-get update output and printing it at the same time. This fixes checking updates on Debian, as 'tee /proc/self/fd/2' fails when the script is called from systemd service (via systemd timer). Fixes QubesOS/qubes-issues#9895
1 parent 4226216 commit bbea997

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

package-managers/upgrades-installed-check

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ elif [ -e /etc/debian_version ]; then
3232
set -e
3333
set -o pipefail
3434
if ! $skip_refresh; then
35-
# shellcheck disable=SC2034
36-
apt_get_update_output="$(apt-get -q update 2>&1 | tee /proc/self/fd/2)"
35+
apt-get -q update >&2
3736
fi
3837
apt_get_upgrade_output="$(LANG="C" apt-get -s upgrade 2>&1)"
3938
exit_code="$?"

0 commit comments

Comments
 (0)