From a8b6dd2c23e4867df908640542886e1b3736786a Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 30 Oct 2022 20:40:50 +0000 Subject: [PATCH] zsh: use CHECKUPDATES_DB from system service --- zsh/lib/motd.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/lib/motd.zsh b/zsh/lib/motd.zsh index 409726f..c931d96 100644 --- a/zsh/lib/motd.zsh +++ b/zsh/lib/motd.zsh @@ -17,7 +17,7 @@ fi if (( $+commands[checkupdates] )); then # checkupdate.service populates this db - pkg_count=$(checkupdates -n | grep -cv '\[.*\]') + pkg_count=$(CHECKUPDATES_DB=/tmp/checkup-db-0 checkupdates -n | grep -cv '\[.*\]') if (( $pkg_count > 0 )); then short "Outdated packages: $pkg_count" fi -- 2.48.1