diff options
| author | dwalker <dwalker@dwalker.xyz> | 2026-05-02 22:14:30 -0400 |
|---|---|---|
| committer | dwalker <dwalker@dwalker.xyz> | 2026-05-02 22:14:30 -0400 |
| commit | bd88099e12e5781e9f38d2af17ab829e80e30687 (patch) | |
| tree | a43251ff330a3872d8fa7600b71ac2c59800e6f3 /.script/xbps_update_count.sh | |
| parent | fcf44b17142cbeaf1f6a4b66e5ab0eed1483ebe4 (diff) | |
reworked scripts
Diffstat (limited to '.script/xbps_update_count.sh')
| -rwxr-xr-x | .script/xbps_update_count.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.script/xbps_update_count.sh b/.script/xbps_update_count.sh new file mode 100755 index 0000000..1df8aa6 --- /dev/null +++ b/.script/xbps_update_count.sh @@ -0,0 +1,8 @@ +#!/bin/sh +count=$(xbps-install -Mun 2>/dev/null | wc -l) + +if [ "$count" -eq 0 ]; then + echo "XBPS: up to date" > /tmp/xbps_update_count +else + echo "XBPS: $count available" > /tmp/xbps_update_count +fi |
