ignore ATTEMPTS when command is open, as it only makes sense for run
This commit is contained in:
parent
abc2e5aac8
commit
942ffff41c
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue