fix: Close stdin before while loop to prevent hang when piped from curl

This commit is contained in:
Muhammad Ibrahim
2025-10-02 13:09:13 +01:00
parent a0bea9b6e5
commit bfc5db11da

View File

@@ -106,6 +106,9 @@ enrolled_count=0
skipped_count=0
failed_count=0
# Close stdin to prevent any interference when piped from curl
exec 0<&-
# ===== PROCESS CONTAINERS =====
while IFS= read -r line; do
vmid=$(echo "$line" | awk '{print $1}')