From ee45befda458edf640b64327a1d06a117b4ae063 Mon Sep 17 00:00:00 2001 From: autoupdate Date: Wed, 26 Jul 2023 19:54:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20(autoupdate)=20Exit=20code=200?= =?UTF-8?q?=20also=20when=20no=20updates=20are=20available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise the pipeline fails --- autoupdate.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoupdate.sh b/autoupdate.sh index b70091a..1386bb7 100755 --- a/autoupdate.sh +++ b/autoupdate.sh @@ -5,7 +5,10 @@ set -euo pipefail dir="$(find . -maxdepth 1 -type d -name "intellij-idea-*")" pushd "$dir" || exit 1 +set +e check="$(uscan --dehs --no-download)" +set -e + status="$(echo "$check" | xmllint --xpath 'string(/dehs/status)' -)" if [[ "$status" != "newer package available" ]]; then