ignore ATTEMPTS when command is open, as it only makes sense for run

This commit is contained in:
burnettk 2023-03-09 10:34:34 -05:00
parent 511446d116
commit d6e05cdbf8
No known key found for this signature in database
1 changed files with 6 additions and 1 deletions

View File

@ -17,7 +17,12 @@ else
shift shift
fi fi
if [[ -z "${ATTEMPTS:-}" ]]; then if [[ -n "${ATTEMPTS:-}" ]]; then
if [[ "$command" == "open" ]]; then
echo "ATTEMPTS is ignored when running cypress open"
ATTEMPTS=1
fi
else
ATTEMPTS=1 ATTEMPTS=1
fi fi