[GH-ISSUE #10595] PVE LXC Tag script error #2288

Closed
opened 2026-02-26 12:51:55 +03:00 by kerem · 1 comment
Owner

Originally created by @Michi1983 on GitHub (Jan 6, 2026).
Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/10595

Originally assigned to: @MickLesk on GitHub.

Have you read and understood the above guidelines?

yes

🔎 Did you run the script with verbose mode enabled?

Yes, verbose mode was enabled and the output is included below

📜 What is the name of the script you are using?

PVE LXC Tag

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/add-iptag.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

📈 Which Proxmox version are you on?

9.1.4

📝 Provide a clear and concise description of the issue.

Installation of the script runs without any problems.
But since the last update #10558 of the script they exit with the error

/opt/iptag/iptag: line 434: syntax error near unexpected token 2' /opt/iptag/iptag: line 434: for conf in /etc/pve/qemu-server/*.conf 2>/dev/null; do'

🔄 Steps to reproduce the issue.

Install with
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/add-iptag.sh)"

As service with the default settings
Run it with "iptag-run"
They exit with the error

Paste the full error output (if available).

/opt/iptag/iptag: line 434: syntax error near unexpected token 2' /opt/iptag/iptag: line 434: for conf in /etc/pve/qemu-server/*.conf 2>/dev/null; do'

🖼️ Additional context (optional).

No response

Originally created by @Michi1983 on GitHub (Jan 6, 2026). Original GitHub issue: https://github.com/community-scripts/ProxmoxVE/issues/10595 Originally assigned to: @MickLesk on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 🔎 Did you run the script with verbose mode enabled? Yes, verbose mode was enabled and the output is included below ### 📜 What is the name of the script you are using? PVE LXC Tag ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/add-iptag.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 📈 Which Proxmox version are you on? 9.1.4 ### 📝 Provide a clear and concise description of the issue. Installation of the script runs without any problems. But since the last update #10558 of the script they exit with the error /opt/iptag/iptag: line 434: syntax error near unexpected token `2' /opt/iptag/iptag: line 434: ` for conf in /etc/pve/qemu-server/*.conf 2>/dev/null; do' ### 🔄 Steps to reproduce the issue. Install with bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/add-iptag.sh)" As service with the default settings Run it with "iptag-run" They exit with the error ### ❌ Paste the full error output (if available). /opt/iptag/iptag: line 434: syntax error near unexpected token `2' /opt/iptag/iptag: line 434: ` for conf in /etc/pve/qemu-server/*.conf 2>/dev/null; do' ### 🖼️ Additional context (optional). _No response_
kerem 2026-02-26 12:51:55 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MrSiJo commented on GitHub (Jan 6, 2026):

I had the same issue but i used chatgpt to fix it, I don't know if it's the best way but it did work
i replaced line 434 with

shopt -s nullglob
for conf in /etc/pve/qemu-server/*.conf; do
    filename="${conf##*/}"
    vmids+=("${filename%.conf}")
done
shopt -u nullglob
<!-- gh-comment-id:3715371520 --> @MrSiJo commented on GitHub (Jan 6, 2026): I had the same issue but i used chatgpt to fix it, I don't know if it's the best way but it did work i replaced line 434 with ``` shopt -s nullglob for conf in /etc/pve/qemu-server/*.conf; do filename="${conf##*/}" vmids+=("${filename%.conf}") done shopt -u nullglob ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#2288
No description provided.