mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-03-03 12:20:03 +00:00
[core] Update build.func: Fix bug with advanced tags (#1473)
This commit is contained in:
parent
86706e6233
commit
97ca738332
@ -629,9 +629,14 @@ advanced_settings() {
|
|||||||
|
|
||||||
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 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
|
if [ -n "${ADV_TAGS}" ]; then
|
||||||
ADV_TAGS=${ADV_TAGS:-""}
|
ADV_TAGS=$(echo "$ADV_TAGS" | tr -d '[:space:]') # Remove whitespace from ADV_TAGS
|
||||||
ADV_TAGS=$(echo "$ADV_TAGS" | tr -d '[:space:]')
|
if [[ "$ADV_TAGS" != *"community-script"* ]]; then
|
||||||
TAGS="community-script;${ADV_TAGS}"
|
TAGS="community-script;${ADV_TAGS}"
|
||||||
|
else
|
||||||
|
TAGS="${ADV_TAGS}" # ADV_TAGS already contains "community-script"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
TAGS=""
|
||||||
fi
|
fi
|
||||||
echo -e "${NETWORK}${BOLD}${DGN}Tags: ${BGN}$TAGS${CL}"
|
echo -e "${NETWORK}${BOLD}${DGN}Tags: ${BGN}$TAGS${CL}"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user