#!/bin/bash set -e echo "============================================================" echo " CAP-Warn Installer — Made in Louisiana" echo "============================================================" echo "Initializing… please wait while the vacuum tubes warm up." echo "" echo "Before running setup.sh you MUST have a VoiceRSS API key." echo "Get one free at: https://www.voicerss.org/" echo "" read -p "Press ENTER to continue... " echo "Thank you. Your response has been recorded on magnetic tape." echo "" echo "Installing CAP-Warn repository key..." echo "Please stand by. Operator is loading punch cards." if ! curl -sSL https://raw.githubusercontent.com/tmastersmart/cap-warn/main/debian/public.key \ | sudo gpg --dearmor -o /usr/share/keyrings/capwarn.gpg; then echo "ERROR: Failed to download or install GPG key." echo "Suggestion: Try reseating the vacuum tubes." exit 1 fi echo "Key installed. No punch cards were harmed." echo "" echo "Adding CAP-Warn APT repository..." echo "Do not fold, spindle, or mutilate this repository." if ! sudo bash -c 'cat > /etc/apt/sources.list.d/capwarn.list <