From e735cb264b2ae7bdf47b44037c2eec00bf10975b Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Wed, 21 Feb 2024 14:44:15 +0100 Subject: [PATCH] make upgrades run in background --- .local/bin/upgrades | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.local/bin/upgrades b/.local/bin/upgrades index 46761a72c..df57fe48e 100755 --- a/.local/bin/upgrades +++ b/.local/bin/upgrades @@ -1,11 +1,5 @@ #!/bin/sh -BOLD='\033[1m' -BLUE='\033[34m' +sudo xbps-install -Syu 1>/tmp/xbps_updates 2>/tmp/xbps_errors || notify-send -u critical "Error downloading updates." "$(cut -d " " -f 1,5 /tmp/xbps_errors)" -sudo xbps-install -Syu pkill -RTMIN+8 "${STATUSBAR:-dwmblocks}" - -printf "%b" "${BOLD}${BLUE}Upgrade complete.\nPress to exit window.\n" -read -r _ -exit