opencode-browser-tool-insta.../install.sh

20 lines
505 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if ! command -v node >/dev/null 2>&1; then
printf 'Node.js no esta disponible en el sistema.\n' >&2
exit 1
fi
if ! command -v npm >/dev/null 2>&1; then
printf 'npm no esta disponible en el sistema.\n' >&2
exit 1
fi
printf 'Iniciando setup en %s\n' "$SCRIPT_DIR"
node "$SCRIPT_DIR/scripts/setup.mjs"
printf 'Instalacion base completada.\n'
printf 'Siguiente paso sugerido: ejecutar ./check.sh\n'