auto updates: stop running update tests if received null value from api (#7619)

When this happens, it's time to update github-projects.txt.
This commit is contained in:
Ian Hu 2021-09-30 18:34:16 +08:00 committed by GitHub
parent d9c56ad316
commit 4a1895e7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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