update build.func

This commit is contained in:
Michel Roegl-Brunner 2025-02-03 11:55:31 +01:00
parent 3e189531c6
commit 47ac39423c

View File

@ -739,6 +739,11 @@ config_file(){
MIN_ID=${BASH_REMATCH[1]} MIN_ID=${BASH_REMATCH[1]}
MAX_ID=${BASH_REMATCH[2]} MAX_ID=${BASH_REMATCH[2]}
if (( MIN_ID >= MAX_ID )); then
msg_error "Invalid Container ID range. The first number must be smaller than the second number, was ${CT_ID}"
exit
fi
LIST_OF_IDS=$( pvesh get /cluster/resources --type vm --output-format json | jq '.[] .vmid' -r) LIST_OF_IDS=$( pvesh get /cluster/resources --type vm --output-format json | jq '.[] .vmid' -r)
for ((ID=MIN_ID; ID<=MAX_ID; ID++)); do for ((ID=MIN_ID; ID<=MAX_ID; ID++)); do