#!/bin/bash set -e # Islands Dark Theme Bootstrap Installer # One-liner: curl -fsSL https://raw.githubusercontent.com/bwya77/vscode-dark-islands/main/bootstrap.sh | bash echo "๐Ÿ๏ธ Islands Dark Theme Bootstrap Installer" echo "==========================================" echo "" REPO_URL="https://github.com/bwya77/vscode-dark-islands.git" INSTALL_DIR="$HOME/.islands-dark-temp" # Detect OS if [[ "$OSTYPE" == "darwin"* ]]; then OS="macOS" elif [[ "$OSTYPE" == "linux-gnu"* ]]; then OS="Linux" else OS="Linux" fi echo "๐Ÿ“ฅ Step 1: Downloading Islands Dark..." echo " Repository: $REPO_URL" # Remove old temp directory if exists rm -rf "$INSTALL_DIR" # Clone repository BRANCH="main" if ! git clone "$REPO_URL" "$INSTALL_DIR" --quiet --branch "$BRANCH"; then echo "โŒ Failed to download Islands Dark" exit 1 fi echo "โœ“ Downloaded successfully!" echo "" echo "๐Ÿš€ Step 2: Running installer..." echo "" # Run appropriate installer if [[ "$OS" == "macOS" ]] || [[ "$OS" == "Linux" ]]; then cd "$INSTALL_DIR" bash install.sh else echo "โš ๏ธ Automatic installation not supported for this OS" echo " Please manually run: cd $INSTALL_DIR && ./install.sh" exit 1 fi # Cleanup (optional - keeps the temp directory) echo "" echo "๐Ÿงน Step 3: Cleaning up..." read -p " Remove temporary files? (y/n) " -n 1 -r echo "" if [[ $REPLY =~ ^[Yy]$ ]]; then rm -rf "$INSTALL_DIR" echo "โœ“ Temporary files removed" else echo " Files kept at: $INSTALL_DIR" fi echo "" echo -e "๐ŸŽ‰ Done! Enjoy your Islands Dark theme!"