X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=86f15358cb9898504c341a21b996d88c60e609cf;hp=d3535b0c76c24f445bedcf0601ed7e4dd6fb33bd;hb=a93156ca9d385302a8b2f8092c15a2ca47306910;hpb=488643ab1a3e97a77bdb01f1070c8e83c6b346f9 diff --git a/chroot-script b/chroot-script index d3535b0..86f1535 100755 --- a/chroot-script +++ b/chroot-script @@ -55,9 +55,9 @@ stage() { askpass() { # read -s emulation for dash. result is in $resp. set -o noglob - stty -echo + [ -t 0 ] && stty -echo read resp - stty echo + [ -t 0 ] && stty echo set +o noglob } # }}}