Add checkupdates script
This commit is contained in:
parent
789ff576b2
commit
13ca0e4a06
12
scripts/checkupdates.sh
Executable file
12
scripts/checkupdates.sh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
checkupdates -d
|
||||||
|
|
||||||
|
CODE=$?
|
||||||
|
|
||||||
|
if [ $CODE -eq 2 ]; then
|
||||||
|
echo "No updates available"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit $CODE
|
Loading…
Reference in a new issue