Skip to content

Commit b4b7320

Browse files
committed
(docs) fixed permission bug in install script
1 parent c4d7164 commit b4b7320

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
@@ -46,15 +46,15 @@ else
4646
fi
4747

4848
echo "Installation directory: $DEST_DIR"
49-
read -rp "Proceed with installation to $DEST_DIR? [Y/n]: " confirm_dir
49+
read -rp "Proceed with installation to $DEST_DIR? [Y/n]: " confirm_dir </dev/tty
5050
confirm_dir=${confirm_dir:-Y}
5151
if [[ ! $confirm_dir =~ ^[Yy] ]]; then
5252
echo "Installation aborted by user."
5353
exit 1
5454
fi
5555

5656
# ─── USER PERMISSION TO DOWNLOAD & INSTALL ──────────────────────────────────
57-
read -rp "Download and install ${BINARY_NAME} to $DEST_DIR? [Y/n]: " confirm_install
57+
read -rp "Download and install ${BINARY_NAME} to $DEST_DIR? [Y/n]: " confirm_install </dev/tty
5858
confirm_install=${confirm_install:-Y}
5959
if [[ ! $confirm_install =~ ^[Yy] ]]; then
6060
echo "Operation cancelled by user."

0 commit comments

Comments
 (0)