Skip to content

Commit 86f5506

Browse files
Merge pull request #237 from community-scripts/update/tools.func
fix: Container ID display not showing after whiptail input and update tools.func
2 parents 9e66cdd + 5faa7f3 commit 86f5506

File tree

2 files changed

+2929
-1386
lines changed

2 files changed

+2929
-1386
lines changed

scripts/core/build.func

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,17 +439,14 @@ advanced_settings() {
439439
exit_script
440440
fi
441441
done
442-
443442
if CT_ID=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Container ID" 8 58 "$NEXTID" --title "CONTAINER ID" 3>&1 1>&2 2>&3); then
444443
if [ -z "$CT_ID" ]; then
445444
CT_ID="$NEXTID"
446-
echo -e "${CONTAINERID}${BOLD}${DGN}Container ID: ${BGN}$CT_ID${CL}"
447-
else
448-
echo -e "${CONTAINERID}${BOLD}${DGN}Container ID: ${BGN}$CT_ID${CL}"
449445
fi
450446
else
451447
exit_script
452448
fi
449+
echo -e "${CONTAINERID}${BOLD}${DGN}Container ID: ${BGN}$CT_ID${CL}"
453450

454451
while true; do
455452
if CT_NAME=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Hostname" 8 58 "$NSAPP" --title "HOSTNAME" 3>&1 1>&2 2>&3); then

0 commit comments

Comments
 (0)