17 lines
282 B
Bash
Executable file
17 lines
282 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then
|
|
updates_arch=0
|
|
fi
|
|
|
|
if ! updates_aur=$(paru -Qua 2> /dev/null | wc -l); then
|
|
updates_aur=0
|
|
fi
|
|
|
|
updates=$(("$updates_arch" + "$updates_aur"))
|
|
|
|
if [ "$updates" -gt 0 ]; then
|
|
echo " $updates"
|
|
else
|
|
echo "0"
|
|
fi
|