Set default value for TAGS in config_file function to ensure tags are initialized

This commit is contained in:
Michel Roegl-Brunner 2025-05-16 11:00:26 +02:00
parent c6613d71d4
commit 033ec6731a

View File

@ -1234,6 +1234,7 @@ config_file() {
if [[ -n "${TAGS-}" ]]; then
echo -e "${NETWORK}${BOLD}${DGN}Tags: ${BGN}$TAGS${CL}"
else
TAGS="community-scripts;"
if ADV_TAGS=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Custom Tags?[If you remove all, there will be no tags!]" 8 58 "${TAGS}" --title "Advanced Tags" 3>&1 1>&2 2>&3); then
if [ -n "${ADV_TAGS}" ]; then
ADV_TAGS=$(echo "$ADV_TAGS" | tr -d '[:space:]')