Add checkupdates script
This commit is contained in:
parent
ee1f973c41
commit
19a35842ce
1 changed files with 12 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue