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 abc2e5aac8
commit 942ffff41c
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