fix: Escape parentheses in display_suffix assignments

This commit is contained in:
courtmanr@gmail.com
2025-04-20 22:07:45 +01:00
parent aa2800ef50
commit f57659e4a1
+2 -2
View File
@@ -96,11 +96,11 @@ gather_lxc_config() {
# Check if it supports disks (rootdir or images)
if [[ $content == *\"rootdir\"* || $content == *\"images\"* ]]; then
local supports_templates=\"false\"
local display_suffix=\"(Disk Only)\"
local display_suffix=\"\(Disk Only\)\"
# Check if it ALSO supports templates (vztmpl)
if [[ $content == *\"vztmpl\"* ]]; then
supports_templates=\"true\"
display_suffix=\"(Templates OK)\"
display_suffix=\"\(Templates OK\)\"
fi
storage_options_display+=(\"$id $display_suffix\")
storage_ids+=(\"$id\")