#!/usr/bin/env bash # Pushes this folder into the (empty) Gitea repo created for it. # Run once from inside the extracted visitor-signin folder: ./push-to-gitea.sh set -euo pipefail REMOTE="https://gitea.hideawaygaming.com.au/jessikitty/visitor-signin.git" if [ ! -f package.json ]; then echo "Run this from inside the visitor-signin folder." >&2 exit 1 fi git init -b main git add . git commit -m "Visitor sign in kiosk: multi-site, badge printing, WWCC expiry warnings, admin accounts with 2FA" git remote add origin "$REMOTE" 2>/dev/null || git remote set-url origin "$REMOTE" git push -u origin main echo echo "Pushed. Repo: https://gitea.hideawaygaming.com.au/jessikitty/visitor-signin"