diff --git a/ci/e2ereport.sh b/ci/e2ereport.sh index a787aa354..0223dc46d 100755 --- a/ci/e2ereport.sh +++ b/ci/e2ereport.sh @@ -9,7 +9,7 @@ FORCE_COLOR=1 DEBUG=1 go run ./e2etests/report/main.go "$@"; if [ -z "${NO_OPEN:-}" ]; then if [ -s "$REPORT_OUTPUT" ]; then - if [ -x "$(command -v open)" ]; then + if command -v open >/dev/null; then open $REPORT_OUTPUT elif [ -x "$(command -v xdg-open)" ]; then xdg-open $REPORT_OUTPUT