🐛 (autoupdate) Exit code 0 also when no updates are available

Otherwise the pipeline fails
This commit is contained in:
Marcel Kapfer 2023-07-26 19:54:42 +02:00
parent 17e8e34268
commit ee45befda4
1 changed files with 3 additions and 0 deletions

View File

@ -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