mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-23 07:42:05 +00:00
fix: Close stdin before while loop to prevent hang when piped from curl
This commit is contained in:
@@ -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}')
|
||||
|
Reference in New Issue
Block a user