This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # SA Mac bootstrap — idempotent, with logging | |
| set -u # don't exit on errors; we want to log them and continue | |
| LOG_FILE="$HOME/Desktop/Setup MacBook for SA.txt" | |
| mkdir -p "$HOME/Desktop" 2>/dev/null || true | |
| log() { printf '[%s] %s\n' "$(date '+%Y-%m-%d %H:%M:%S')" "$*" | tee -a "$LOG_FILE"; } | |
| section() { echo | tee -a "$LOG_FILE"; log "==== $* ===="; } |