mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-23 03:33:53 +00:00
fix: allow interactive mode when using curl | bash for Proxmox installations
The script was detecting piped input and automatically going into non-interactive mode, preventing users from choosing between Quick and Advanced installation modes. Now checks if /dev/tty is available even when stdin is piped, allowing interaction through the terminal for curl-based installations while still supporting truly non-interactive environments (like automation scripts without any TTY).
This commit is contained in:
+4
-2
@@ -149,8 +149,10 @@ create_lxc_container() {
|
||||
echo
|
||||
|
||||
# Check if we're being piped (non-interactive)
|
||||
# Test if stdin is not a TTY (being piped)
|
||||
if ! test -t 0; then
|
||||
# For Proxmox installations, try to use /dev/tty even when piped
|
||||
# This allows interactive mode when using curl | bash
|
||||
if ! test -t 0 && ! test -e /dev/tty; then
|
||||
# No TTY available at all - truly non-interactive
|
||||
echo "Non-interactive mode detected. Using Quick installation."
|
||||
mode="1"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user