#!/bin/sh set -eu INSTALLER="https://github.com/Overbrilliant/ob-1/releases/latest/download/install.sh" BIN_DIR="$HOME/.local/bin" PROFILE="$HOME/.bashrc" if ! command -v curl >/dev/null 2>&1; then echo "Error: curl is required." exit 1 fi echo "Installing OB-1..." curl -fsSL "$INSTALLER" | sh echo "Configuring PATH..." mkdir -p "$BIN_DIR" touch "$PROFILE" PATH_LINE='export PATH="$HOME/.local/bin:$PATH"' if ! grep -Fqx "$PATH_LINE" "$PROFILE"; then printf '\n%s\n' "$PATH_LINE" >> "$PROFILE" fi export PATH="$BIN_DIR:$PATH" echo "" echo "OB-1 installation completed successfully." echo "PATH configured in ~/.bashrc" echo "" echo "Run: source ~/.bashrc" echo "Then: ob1"