foodotfiles/scripts/checkupdates.sh

13 lines
116 B
Bash
Raw Normal View History

2022-12-01 19:56:56 +00:00
#!/bin/sh
checkupdates -d
CODE=$?
if [ $CODE -eq 2 ]; then
echo "No updates available"
exit 0
fi
exit $CODE