diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-08-23 13:36:06 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-08-23 13:36:06 +0900 |
| commit | 6baef1437fcf40b1d51c5255af78ab297d361d2c (patch) | |
| tree | c3c257e026ec3fb32b787839f81d8af0c2e6c7ce /mac/.local/bin/cron/checkup | |
| parent | 07d294425a98ee5d1e22d03e2b24ae2c76e487c0 (diff) | |
updates
Diffstat (limited to 'mac/.local/bin/cron/checkup')
| -rwxr-xr-x | mac/.local/bin/cron/checkup | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mac/.local/bin/cron/checkup b/mac/.local/bin/cron/checkup new file mode 100755 index 0000000..801d406 --- /dev/null +++ b/mac/.local/bin/cron/checkup @@ -0,0 +1,16 @@ +#!/bin/sh + +# Syncs repositories and downloads updates, meant to be run as a cronjob. + +notify-send "📦 Repository Sync" "Checking for package updates..." + +sudo pacman -Syyuw --noconfirm || notify-send "⛔ Error downloading updates. +Check your internet connection, if pacman is already running, or run update manually to see errors." + +pkill -RTMIN+16 "${STATUSBAR:-dwmblocks}" + +if pacman -Qu | grep -v "\[ignored\]"; then + notify-send "🎁 Repository Sync" "Updates available. Click statusbar icon (📦) or run sb-popupgrade in terminal for update." +else + notify-send "📦 Repository Sync" "Sync complete. No new packages for update." +fi |
