12 lines
187 B
Bash
12 lines
187 B
Bash
#!/bin/sh
|
|
|
|
fwupdmgr refresh >> /dev/null 2>&1
|
|
|
|
updates=$(fwupdmgr get-updates 2> /dev/null | grep -c "Updatable")
|
|
|
|
if [ "$updates" -gt 0 ]; then
|
|
echo "# $updates"
|
|
else
|
|
echo ""
|
|
fi
|