Skip to content

Commit bc52256

Browse files
fix: Container ID display not showing after whiptail input
- Move echo statement outside whiptail output capture block - Fix output redirection interference with Container ID display - Ensure Container ID is properly displayed regardless of user input - Consolidate duplicate echo statements into single display
1 parent 9e66cdd commit bc52256

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
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)