diff --git a/scripts/image-builder.sh b/scripts/image-builder.sh index 18a12b3..e04afcd 100755 --- a/scripts/image-builder.sh +++ b/scripts/image-builder.sh @@ -663,8 +663,8 @@ build_image() { echo "Latest: $latest" | tee -a "$logfile" echo "====================================" | tee -a "$logfile" - # Architekturen-Array vorbereiten - arch_array=($architectures) + # Architekturen-Array vorbereiten + read -r -a arch_array <<< "$architectures" platforms="" for arch in "${arch_array[@]}"; do case "$arch" in @@ -677,13 +677,13 @@ build_image() { done platforms="${platforms%,}" + echo "DEBUG platforms='$platforms'" | tee -a "$logfile" + if [[ -z "$platforms" ]]; then echo "Keine Architektur ausgewählt. Build abgebrochen." | tee -a "$logfile" return 1 fi - echo "DEBUG platforms='$platforms'" | tee -a "$logfile" - # Tags für alle Registries vorbereiten IFS=',' read -ra reg_array <<< "$registry" tags=()