9 lines
140 B
Bash
Executable file
9 lines
140 B
Bash
Executable file
#!/bin/sh
|
|
|
|
pkg_updates_count=$(pacman -Qu | wc -l)
|
|
if [ $((pkg_updates_count)) -gt 0 ]
|
|
then
|
|
echo $pkg_updates_count
|
|
else
|
|
echo ""
|
|
fi
|