diff --git a/lib/disinto/backup.sh b/lib/disinto/backup.sh index 97c5cd2..628acec 100644 --- a/lib/disinto/backup.sh +++ b/lib/disinto/backup.sh @@ -310,15 +310,9 @@ backup_import_issues() { backup_import() { local tarball="$1" - if [ -z "${FORGE_URL:-}" ]; then - echo "Error: FORGE_URL not set" >&2 - exit 1 - fi - - if [ -z "${FORGE_TOKEN:-}" ]; then - echo "Error: FORGE_TOKEN not set" >&2 - exit 1 - fi + # Validate required environment + [ -n "${FORGE_URL:-}" ] || { echo "Error: FORGE_URL not set" >&2; exit 1; } + [ -n "${FORGE_TOKEN:-}" ] || { echo "Error: FORGE_TOKEN not set" >&2; exit 1; } backup_log "=== Backup Import Started ===" backup_log "Target: ${FORGE_URL}"