We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f3fea5 commit ea7ce73Copy full SHA for ea7ce73
bin/sail
@@ -561,6 +561,15 @@ elif [ "$1" == "share" ]; then
561
elif [ "$1" == "open" ]; then
562
shift 1
563
564
+ if command -v open &>/dev/null; then
565
+ OPEN="open"
566
+ elif command -v xdg-open &>/dev/null; then
567
+ OPEN="xdg-open"
568
+ else
569
+ echo "Neither open nor xdg-open is available. Exiting."
570
+ exit 1
571
+ fi
572
+
573
if [ "$EXEC" == "yes" ]; then
574
575
if [[ -n "$APP_PORT" && "$APP_PORT" != "80" ]]; then
@@ -569,7 +578,7 @@ elif [ "$1" == "open" ]; then
578
FULL_URL="$APP_URL"
579
fi
580
- open "$FULL_URL"
581
+ $OPEN "$FULL_URL"
582
583
exit
584
else
0 commit comments