Files
ProxmoxVE/tools
CanbiZ (MickLesk) d432d98723 iptag: fix syntax error in VM config file parsing (#10598)
* fix(iptag): Fix syntax error in VM config file parsing

The array assignment was using an invalid pipe construct inside the loop:
  vmids+=("${conf##*/}" | sed 's/\.conf$//')

This caused a bash syntax error:
  syntax error near unexpected token '2'

Fixed by using:
- shopt -s nullglob to handle empty directories gracefully
- Parameter expansion ${filename%.conf} instead of sed pipe

Fixes #10595

* fix(iptag): Fix syntax error in VM config file parsing

The array assignment was using an invalid pipe construct inside the loop:
  vmids+=("${conf##*/}" | sed 's/\.conf$//')

This caused a bash syntax error:
  syntax error near unexpected token '2'

Fixed by using parameter expansion ${basename%.conf} instead of sed pipe.

Fixes #10595
2026-01-06 19:31:45 +01:00
..
2025-12-28 18:30:20 +01:00