X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=chroot-script;h=86f15358cb9898504c341a21b996d88c60e609cf;hb=refs%2Fheads%2Fmika%2F0.56;hp=d3535b0c76c24f445bedcf0601ed7e4dd6fb33bd;hpb=76ca7586f359f1d2faa671d85936186140f7e413;p=grml-debootstrap.git 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 } # }}}