From 13ca0e4a0615b5d0979ac39aa3d842b9b0197b5b Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Thu, 1 Dec 2022 21:56:56 +0200 Subject: [PATCH] Add checkupdates script --- scripts/checkupdates.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 scripts/checkupdates.sh diff --git a/scripts/checkupdates.sh b/scripts/checkupdates.sh new file mode 100755 index 0000000..27bd146 --- /dev/null +++ b/scripts/checkupdates.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +checkupdates -d + +CODE=$? + +if [ $CODE -eq 2 ]; then + echo "No updates available" + exit 0 +fi + +exit $CODE