#!/bin/bash
# Instalador Nativo de J.A.R.V.I.S. para MacBook Pro de Matías
APP_URL="https://jarvis.conlysmart.com"
if ! curl -s --head --request GET "$APP_URL" | grep "200" > /dev/null; then
    APP_URL="http://localhost:5000"
fi
open -a "Google Chrome" --args --app="$APP_URL" || open "$APP_URL"
