14 lines
224 B
Bash
Executable file
14 lines
224 B
Bash
Executable file
#!/usr/bin/env dash
|
|
|
|
. $(dirname $0)/../panel-config
|
|
|
|
ICON_UPD=""
|
|
|
|
pkgs="$(checkupdates | wc -l)"
|
|
if [ "$pkgs" -gt 0 ]
|
|
then
|
|
echo "U%{F${COLOR_2}}$ICON_UPD$pkgs%{F-}"
|
|
else
|
|
echo "U%{F${COLOR_DIM}}$ICON_UPD%{F-}"
|
|
fi
|