Tools/scripts: In pypi-get-latest-version.sh, exit with exit code 1 on failure

This commit is contained in:
Yuri Victorovich 2025-02-22 01:17:13 -08:00
parent b211847275
commit 2903d6302c
1 changed files with 1 additions and 1 deletions

View File

@ -43,4 +43,4 @@ fetch -o - https://pypi.python.org/pypi/$PACKAGE_NAME/json 2>/dev/null |
grep -v -E ".*(a|b|rc)[0-9]*$" |
version_sort |
tail -1 ||
echo "failed to find the Python package '$PACKAGE_NAME'"
! echo "failed to find the Python package '$PACKAGE_NAME'"