From 3cc8ab1cb829d3787f6bfb8b0e0cc3581c885c16 Mon Sep 17 00:00:00 2001 From: Apostolis A Date: Fri, 20 Jan 2023 04:29:47 +0200 Subject: [PATCH] Update ci/e2ereport.sh Co-authored-by: Anmol Sethi --- ci/e2ereport.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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