Skip to content

Commit c3e931e

Browse files
committed
check-ensurepip: Indicate the result via exit status
Signed-off-by: Michał Górny <[email protected]>
1 parent a6c0321 commit c3e931e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

check-ensurepip

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ done < <(
1515
"${PKGS[@]/#/dev-python\/ensurepip-}"
1616
)
1717

18+
RET=0
1819
for PKG in "${PKGS[@]}"; do
1920
ENSUREPIP="${VERSIONS[ensurepip-${PKG}]}"
2021
ACTUAL="${VERSIONS[${PKG}]}"
@@ -23,5 +24,8 @@ for PKG in "${PKGS[@]}"; do
2324
echo "Ensurepip mismatch found!" >&2
2425
echo " dev-python/ensurepip-${PKG}: ${ENSUREPIP}" >&2
2526
echo " dev-python/${PKG}: ${ACTUAL}" >&2
27+
RET=1
2628
fi
2729
done
30+
31+
exit "${RET}"

0 commit comments

Comments
 (0)