1
0
mirror of https://github.com/alrayyes/i3blocks synced 2023-11-13 18:16:40 +00:00
i3blocks/archupdates
2016-11-21 21:57:28 +01:00

13 lines
202 B
Bash
Executable File

#!/bin/sh
# Arch upgradeable packages
list=`pacman -Sup 2> /dev/null`
if [ "$list" == ":: Starting full system upgrade..." ]; then
count=""
else
count=`echo "$list" | wc -l`
fi
echo "$count"