refactor: hetzner/lib - add bash safety flags

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Sprite 2026-02-07 21:44:08 +00:00
parent 0e5712a634
commit 595d6f7f59

View file

@ -1,4 +1,5 @@
#!/bin/bash
set -euo pipefail
# Common bash functions for Hetzner Cloud spawn scripts
# ============================================================
@ -19,7 +20,7 @@ source "$SCRIPT_DIR/../../shared/common.sh" || {
# ============================================================
readonly HETZNER_API_BASE="https://api.hetzner.cloud/v1"
readonly SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR -i $HOME/.ssh/id_ed25519"
# SSH_OPTS is now defined in shared/common.sh
# Centralized curl wrapper for Hetzner API
hetzner_api() {