mirror of
https://github.com/mrfluffy-dev/dotfiles.git
synced 2026-01-17 05:40:34 +00:00
17 lines
201 B
Bash
Executable File
17 lines
201 B
Bash
Executable File
#!/bin/bash
|
|
|
|
checkupdates > out.log 2>/dev/null
|
|
|
|
if [ $? -eq 0 ]
|
|
then
|
|
echo $(checkupdates | wc -l) updates
|
|
exit 0
|
|
elif [ $? -eq 1 ]
|
|
then
|
|
echo "0 updates"
|
|
exit 0
|
|
else
|
|
echo "0 updates"
|
|
exit 1
|
|
fi
|