From 4a1895e7f563e2a0b23a74d4bc5302e00ac7901a Mon Sep 17 00:00:00 2001 From: Ian Hu Date: Thu, 30 Sep 2021 18:34:16 +0800 Subject: [PATCH] auto updates: stop running update tests if received null value from api (#7619) When this happens, it's time to update github-projects.txt. --- scripts/updates/check-updates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/updates/check-updates.sh b/scripts/updates/check-updates.sh index cf5e3c6f0..822d4ae1e 100755 --- a/scripts/updates/check-updates.sh +++ b/scripts/updates/check-updates.sh @@ -49,7 +49,7 @@ if [ -f "${BASEDIR}/github-projects.txt" ]; then latest_version=$(grep -oP "$version_regexp" <<< "$latest_version" || true) fi - if [ -z "$latest_version" ]; then + if [[ -z "$latest_version" || "$latest_version" = "null" ]]; then echo "Failed to get latest version for '${package}'. Update 'github-projects.txt'." exit 1 fi