1
0
Fork 0

fix checkup script

This commit is contained in:
Luca Bilke 2024-04-23 09:48:05 +02:00
parent 21f335505e
commit fdf22a79ec
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ askupgrade() {
[ "$(notify-send -c updates --action=Yes=Yes --action=No=No " Repository Sync" "Updates available. Update now?")" = 'Yes' ] && upgrades
}
\xbps-install -Sun 1>/tmp/xbps_updates 2>/tmp/xbps_errors
\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