diff --git a/scripts/binutils/configure.sh b/scripts/binutils/configure.sh index 4b6d58b..5de9532 100755 --- a/scripts/binutils/configure.sh +++ b/scripts/binutils/configure.sh @@ -130,7 +130,7 @@ then "$TAG Based on $pm, some dependencies are missing: $missing\n" \ "$TAG Do you want to run '$pm_install $missing' to install " \ 'them [nY]? ' - read -r do_install + read -r do_install < /dev/tty if [[ "$do_install" != 'n' ]] then bash -c "$pm_install $missing" diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh index e3113b0..44dba00 100755 --- a/scripts/bootstrap.sh +++ b/scripts/bootstrap.sh @@ -110,9 +110,9 @@ then echo " - Binutils version: $version_binutils" echo " - Clone directory: $prefix_clone" echo " - Compliler install at: $prefix_install" - read -p 'Process ? [yN]: ' -r valid + read -p 'Process ? [yN]: ' -r valid < /dev/tty else - read -p 'Uninstall the sh-elf-vhex compiler ? [yN]: ' -r valid + read -p 'Uninstall the sh-elf-vhex compiler ? [yN]: ' -r valid < dev/tty fi # check if the stdin exists, which is not the case when the script is piped diff --git a/scripts/gcc/configure.sh b/scripts/gcc/configure.sh index c71b8f5..8861a60 100755 --- a/scripts/gcc/configure.sh +++ b/scripts/gcc/configure.sh @@ -113,8 +113,10 @@ echo "$TAG install dependencies..." cd ./archive || exit 1 if ! utils_warn_callcmd ./contrib/download_prerequisites then - echo "The installation of GCC's prerequisites has failed" - read -p 'Do you want to continue the installation ? [yN]: ' -r valid + echo -en \ + 'The installation of GCC'\''s prerequisites has failed\n' \ + 'Do you want to continue the installation ? [yN]: ' + read -r valid < /dev/tty if [[ "$valid" != 'y' ]]; then echo 'Operation aborted o(x_x)o' exit 1