#!/bin/bash set -euo pipefail # Bootstrap script for asreerama's personal setup # NOTE: This file is named index.html to be served by GitHub Pages, but it is a BASH script. REPO_URL="https://github.com/asreerama/setup.git" INSTALL_DIR="$HOME/.personal-setup" echo "🚀 Starting setup for asreerama..." # 1. Clone or Update the Repository if [ -d "$INSTALL_DIR/.git" ]; then echo "📦 Updating existing setup..." cd "$INSTALL_DIR" git pull --ff-only || echo "⚠️ Could not fast-forward; using existing local copy." else echo "📦 Cloning setup repository..." git clone "$REPO_URL" "$INSTALL_DIR" cd "$INSTALL_DIR" fi # 2. Make sure scripts are executable chmod +x scripts/*.sh # 3. Run Configuration Scripts echo "🔧 Running configuration scripts..." # Enable TouchID for sudo (don't abort the whole run if it needs attention, # e.g. SIP-protected /etc/pam.d on macOS 26 Tahoe — the script explains next steps). if ./scripts/enable_touchid.sh; then :; else echo "⚠️ Touch ID step needs attention (see the message above)." fi echo "✅ Setup complete!"