Skip to content

Commit

Permalink
gradle: fix ps failure on darwin
Browse files Browse the repository at this point in the history
Would always report an error exit code on darwin with `ps: time: requires entitlement`.
Fixed by changing to a simpler output format that doesn't use time.
  • Loading branch information
emilytrau committed Jan 18, 2025
1 parent 3010e3c commit 39cb213
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ lib.makeOverridable (
MITM_CACHE_PID="$!"
# wait for mitm-cache to fully start
for i in {0..20}; do
ps -p "$MITM_CACHE_PID" >/dev/null || (echo "Failed to start mitm-cache" && exit 1)
ps -p "$MITM_CACHE_PID" -o comm= >/dev/null || (echo "Failed to start mitm-cache" && exit 1)
curl -so/dev/null "$MITM_CACHE_ADDRESS" && break
[[ "$i" -eq 20 ]] && (echo "Failed to start mitm-cache" && exit 1)
sleep 0.5
Expand Down

0 comments on commit 39cb213

Please sign in to comment.