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

View file

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