Skip to content

Commit

Permalink
Added logic to call xdg-open instead of open on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Spagett1 committed Mar 30, 2023
1 parent c18cd7a commit 3286763
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ci/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ pid1=$!
pid2=$!

sleep 5
open http://localhost:8080/

if [ "$(uname)" == "Darwin" ]; then
open http://localhost:8080/
else
xdg-open http://localhost:8080/
fi

trap "kill $pid1 $pid2" EXIT
wait $pid1 $pid2
7 changes: 6 additions & 1 deletion run-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ pid2=$!
cd ..

sleep 2
open http://localhost:8080/

if [ "$(uname)" == "Darwin" ]; then
open http://localhost:8080/
else
xdg-open http://localhost:8080/
if

trap "kill $pid1 $pid2" EXIT
wait $pid1 $pid2

0 comments on commit 3286763

Please sign in to comment.