Skip to content

Commit d38a5f6

Browse files
committed
Read input from /dev/tty instad of stdin during install
1 parent eec99d2 commit d38a5f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ detect_arch() {
4848

4949
prompt_install_path() {
5050
echo -n "Installation path [/opt/vume]: "
51-
read -r path
51+
read -r path < /dev/tty
5252
INSTALL_PATH="${path:-/opt/vume}"
5353
}
5454

5555
prompt_pool_device() {
5656
local default_pool="$VUME_HOME/vume.zfs"
5757
echo -n "ZFS pool device (leave empty for file-backed dev mode) [${default_pool}]: "
58-
read -r device
58+
read -r device < /dev/tty
5959
if [[ -n "$device" ]]; then
6060
POOL_DEVICE="$device"
6161
else

0 commit comments

Comments
 (0)