install: run interactively if stin AND stdout are a terminal

This commit is contained in:
Fernando Schauenburg 2022-02-07 19:36:53 +01:00
parent 50fdc150b8
commit 795bae0929

View file

@ -36,11 +36,11 @@ greeting() {
info " Target: $cyan$TARGET$rst" info " Target: $cyan$TARGET$rst"
info " Git user: $yellow$GIT_USER <$GIT_EMAIL>$rst" info " Git user: $yellow$GIT_USER <$GIT_EMAIL>$rst"
[ -t 0 ] && { if [ -t 0 -a -t 1 ]; then
info info
info "Press ENTER to continue (CTRL-C to cancel)..." info "Press ENTER to continue (CTRL-C to cancel)..."
read k read k
} fi
} }
make_dirs() { make_dirs() {