From a863e44c4175b5e069fbe8f26487d489d64bd5f8 Mon Sep 17 00:00:00 2001 From: Luca Bilke <luca@bil.ke> Date: Wed, 7 Aug 2024 09:32:54 +0200 Subject: [PATCH] checkup: remove prompt --- .local/libexec/cron/checkup | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.local/libexec/cron/checkup b/.local/libexec/cron/checkup index a79f466e..dfcd96ad 100755 --- a/.local/libexec/cron/checkup +++ b/.local/libexec/cron/checkup @@ -2,15 +2,11 @@ pkill -RTMIN+1 dwmblocks -askupgrade() { - [ "$(notify-send -c updates --action=Yes=Yes --action=No=No " Repository Sync" "Updates available. Update now?")" = 'Yes' ] && $TERMCMD upgrades -} - \xbps-install -SMun 1>/tmp/xbps_updates 2>/tmp/xbps_errors ne="$(grep -c broken /tmp/xbps_errors)" n="$(grep -c -e update -e install /tmp/xbps_updates)" if [ "$n" != "0" ] && [ "$ne" != "0" ]; then - notify-send -u critical "Error downloading updates." "$(cut -d " " -f 1,5 /tmp/xbps_errors)" + notify-send -c updates -u critical " Repository Sync" "Error downloading updates: $(cut -d " " -f 1,5 /tmp/xbps_errors)" elif [ "$n" -gt 1 ] && [ "$ne" = "0" ]; then - askupgrade + notify-send -c updates " Repository Sync" "Updates available: $n" fi