"read -p" does not support color formatting directly in build.func #468

Closed
opened 2026-02-04 19:04:38 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @PhoenixEmik on GitHub (Feb 9, 2025).

Originally assigned to: @MickLesk on GitHub.

Have you read and understood the above guidelines?

yes

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

Forgejo LXC

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

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/forgejo.sh)"

📝 Provide a clear and concise description of the issue.

Problematic code:
d20c92bd4f/misc/build.func (L959)
Apparently, read -p in Bash does not support color formatting directly. It looks weird.

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Just perform any script upgrade such as

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/forgejo.sh)"

Paste the full error output (if available).

Image

🖼️ Additional context (optional).

No response

Originally created by @PhoenixEmik on GitHub (Feb 9, 2025). Originally assigned to: @MickLesk on GitHub. ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Forgejo LXC ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/forgejo.sh)" ### 📝 Provide a clear and concise description of the issue. Problematic code: https://github.com/community-scripts/ProxmoxVE/blob/d20c92bd4f62a060537f91b8ad61d9353e8159f9/misc/build.func#L959 Apparently, `read -p` in Bash does not support color formatting directly. It looks weird. ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Just perform any script upgrade such as ```bash bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/forgejo.sh)" ``` ### ❌ Paste the full error output (if available). ![Image](https://github.com/user-attachments/assets/97c22577-5a0c-4033-81f4-08664df645eb) ### 🖼️ Additional context (optional). _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#468