fix checkup script
This commit is contained in:
parent
55721f1701
commit
0ad325e5d7
|
@ -1,10 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
askupgrade() {
|
||||
[ "$(notify-send -c updates --action=Yes=Yes --action=No=No " Repository Sync" "Updates available. Update now?")" = 'Yes' ] && $TERMINAL -e upgrades
|
||||
[ "$(notify-send -c updates --action=Yes=Yes --action=No=No " Repository Sync" "Updates available. Update now?")" = 'Yes' ] && $TERMINAL -e upgrades
|
||||
}
|
||||
|
||||
xbps-install -nuM 1>/tmp/xbps_updates 2>/tmp/xbps_errors
|
||||
\xbps-install -Sun 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
|
||||
|
|
|
@ -6,4 +6,4 @@ icon=""
|
|||
|
||||
num="$(\xbps-install -Sun | grep -c "update")"
|
||||
[ "$num" -gt 0 ] && printf "%b" "$big$icon$reset $num\n"
|
||||
exit
|
||||
exit 0
|
||||
|
|
Loading…
Reference in New Issue