Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ trap cleanup EXIT
echo "xpbc installer"
echo ""

# Ask user for install directory
read -rp "Install directory [$DEFAULT_INSTALL_DIR]: " INSTALL_DIR
# Read from /dev/tty so this works even when piped via curl | bash
printf "Install directory [%s]: " "$DEFAULT_INSTALL_DIR"
read -r INSTALL_DIR < /dev/tty || true
INSTALL_DIR="${INSTALL_DIR:-$DEFAULT_INSTALL_DIR}"

# Expand ~ to $HOME
Expand Down