15 lines
248 B
Bash
Executable file
15 lines
248 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
avail=$(checkupdates | wc -l )
|
|
aur=$(yaourt -Qua | grep 'aur/' | wc -l)
|
|
|
|
if [[ $(($aur+$avail)) -eq 0 ]]
|
|
then
|
|
echo "0 màj"
|
|
echo ok
|
|
echo "#99cc99"
|
|
else
|
|
echo "$avail màj"
|
|
echo "$avail"
|
|
echo "#f99157"
|
|
fi
|