From 795bae092906ee1b271f4007eb5161db47656512 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 7 Feb 2022 19:36:53 +0100 Subject: [PATCH] install: run interactively if stin AND stdout are a terminal --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index a0af129..2e060e2 100755 --- a/install.sh +++ b/install.sh @@ -36,11 +36,11 @@ greeting() { info " Target: $cyan$TARGET$rst" info " Git user: $yellow$GIT_USER <$GIT_EMAIL>$rst" - [ -t 0 ] && { + if [ -t 0 -a -t 1 ]; then info info "Press ENTER to continue (CTRL-C to cancel)..." read k - } + fi } make_dirs() {