pacmanupdates.sh (281B)
1 #!/bin/sh 2 3 ping -c 1 google.com >/dev/null 2>&1 || exit 4 5 cmd="paru" 6 aur="--repo" 7 8 [ "$1" = "-a" ] && aur="--aur" 9 10 $cmd -Sy >> /dev/null || exit 11 output=$($cmd -Quq $aur | wc -l) 12 13 if [ "$1" = "-a" ]; then 14 output="📦AUR:$output" 15 else 16 output="📦:$output" 17 fi 18 19 echo "$output" 20 exit