Allow calling setup.sh from other scripts

Calling setup.sh from other scripts fails, for example when adding a new mailbox:

    the input device is not a TTY
This commit is contained in:
Casper 2020-02-22 00:52:32 +01:00 committed by GitHub
parent 7f3fe45a83
commit ff861ca314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ _docker_image_exists() {
fi
}
if [ -t 1 ] ; then
if tty -s ; then
USE_TTY="-ti"
fi