File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4646fi
4747
4848echo " 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
5050confirm_dir=${confirm_dir:- Y}
5151if [[ ! $confirm_dir =~ ^[Yy] ]]; then
5252 echo " Installation aborted by user."
5353 exit 1
5454fi
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
5858confirm_install=${confirm_install:- Y}
5959if [[ ! $confirm_install =~ ^[Yy] ]]; then
6060 echo " Operation cancelled by user."
You can’t perform that action at this time.
0 commit comments