Add checkupdates script

This commit is contained in:
Marko Korhonen 2022-12-01 21:56:56 +02:00
parent ee1f973c41
commit 19a35842ce

12
scripts/checkupdates.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/sh
checkupdates -d
CODE=$?
if [ $CODE -eq 2 ]; then
echo "No updates available"
exit 0
fi
exit $CODE