diff options
Diffstat (limited to 'i3blocks-up.sh')
-rwxr-xr-x | i3blocks-up.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/i3blocks-up.sh b/i3blocks-up.sh index 52791a1..24db497 100755 --- a/i3blocks-up.sh +++ b/i3blocks-up.sh @@ -1,5 +1,3 @@ #!/bin/sh -icon= - doas freebsd-update updatesready > /dev/null -[ $? -eq 2 ] && printf "$icon%s\n" "$(uptime | grep -o 'up[^,]*')" || printf "%sUpdates are available" $icon +[ $? -ne 2 ] && printf "Updates are available" $icon |