This commit is contained in:
Patrick Schleizer 2017-02-28 15:22:54 +01:00
parent 18e23af784
commit f6bc188485
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -21,6 +21,11 @@ trap "cleanup" EXIT
apt_get_exit_code="0"
## Thanks to:
## dmw
## http://stackoverflow.com/a/26263980/2605155
## for the python way to create a pty.
python -c 'import pty, sys; pty.spawn(sys.argv[1:])' \
| apt-get "$@" 2>&1 \
| tee -a "$logfile" \