don't fail to ask for a password if there is no TTY
authorEvgeni Golov <evgeni@grml.org>
Thu, 16 Aug 2012 21:45:14 +0000 (23:45 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 4 Feb 2013 13:37:18 +0000 (14:37 +0100)
commita93156ca9d385302a8b2f8092c15a2ca47306910
tree292997f8fb3c54680bec0e2a827aa7c551b4ec60
parent488643ab1a3e97a77bdb01f1070c8e83c6b346f9
don't fail to ask for a password if there is no TTY

When running grml-debootrap over ssh like
  ssh root@grml grml-debootstrap ...
the password promt for the root user would fail, as you cannot stty
without a tty. The user should actually have called
  ssh -t root@grml grml-debootstrap ...
which would have allocated a TTY and all would have worked.

Display a warning to the user and fall back to displaying the entered
password when he continues to use grml-debootstrap w/o a TTY.

Closes: issue1200
chroot-script
grml-debootstrap