Skip to content

Commit e4d99ff

Browse files
committed
ci: fix
1 parent b041cde commit e4d99ff

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ui-tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,12 @@ jobs:
8989
run: |
9090
mkdir -p ~/custom-bin
9191
echo '#!/bin/bash' > ~/custom-bin/open
92-
echo 'if [[ "$1" =~ ^https?:// ]]; then' >> ~/custom-bin/open
93-
echo ' "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" "$@"' >> ~/custom-bin/open
92+
echo 'if [[ "$1" == http* ]]; then' >> ~/custom-bin/open
93+
echo ' # Open URLs in Chrome in the background' >> ~/custom-bin/open
94+
echo ' nohup /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome "$1" &>/dev/null &' >> ~/custom-bin/open
9495
echo 'else' >> ~/custom-bin/open
95-
echo ' /usr/bin/open "$@"' >> ~/custom-bin/open
96+
echo ' # Fallback to the default open command for non-URL files' >> ~/custom-bin/open
97+
echo ' /usr/bin/open "$@"' >> ~/custom-bin/open
9698
echo 'fi' >> ~/custom-bin/open
9799
chmod +x ~/custom-bin/open
98100

0 commit comments

Comments
 (0)