ignore ATTEMPTS when command is open, as it only makes sense for run
This commit is contained in:
parent
511446d116
commit
d6e05cdbf8
|
@ -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