mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
14 lines
226 B
Bash
Executable File
14 lines
226 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
if ! updates=$(yay -Qum 2> /dev/null | wc -l); then
|
|
updates=0
|
|
fi
|
|
|
|
if [ "$updates" -eq 1 ]; then
|
|
echo "$updates update"
|
|
elif [ "$updates" -gt 1 ]; then
|
|
echo "$updates updates"
|
|
else
|
|
echo ""
|
|
fi
|