Exiting a script with ESC throws an error #1280

Closed
opened 2026-02-05 00:10:23 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @dbir0 on GitHub (Jul 14, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

grafana or debian container scripts

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/grafana.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

📝 Provide a clear and concise description of the issue.

When escaping a script's menu with ESC on your keyboard throws an error

🔄 Steps to reproduce the issue.

Run any script (ex. bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/debian.sh)" ), wait for the menu to come up, and hit the keyboard ESC to leave the script. You should see the error.

Paste the full error output (if available).

[ERROR] in line 886: exit code 0: while executing command CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SETTINGS" --menu "Choose an option:" 18 60 6 "1" "Default Settings" "2" "Default Settings (with verbose)" "3" "Advanced Settings" "4" "Use Config File" "5" "Diagnostic Settings" "6" "Exit" --nocancel --default-item "1" 3>&1 1>&2 2>&3)

🖼️ Additional context (optional).

No response

Originally created by @dbir0 on GitHub (Jul 14, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? grafana or debian container scripts ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/grafana.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 📝 Provide a clear and concise description of the issue. When escaping a script's menu with ESC on your keyboard throws an error ### 🔄 Steps to reproduce the issue. Run any script (ex. bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/debian.sh)" ), wait for the menu to come up, and hit the keyboard ESC to leave the script. You should see the error. ### ❌ Paste the full error output (if available). [ERROR] in line 886: exit code 0: while executing command CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SETTINGS" --menu "Choose an option:" 18 60 6 "1" "Default Settings" "2" "Default Settings (with verbose)" "3" "Advanced Settings" "4" "Use Config File" "5" "Diagnostic Settings" "6" "Exit" --nocancel --default-item "1" 3>&1 1>&2 2>&3) ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-05 00:10:23 +03:00
Author
Owner

@MickLesk commented on GitHub (Jul 14, 2025):

This has been the case for months, it's due to the subshell in the subshell

@MickLesk commented on GitHub (Jul 14, 2025): This has been the case for months, it's due to the subshell in the subshell
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1280