This commit is contained in:
Patrick Schleizer 2021-08-03 03:25:35 -04:00
parent c94281121e
commit bb3e65f7a8
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -25,7 +25,7 @@ apt_get_exit_code="0"
## http://stackoverflow.com/a/26263980/2605155
## for the python way to create a pty.
python3.7 -c 'import pty, sys; pty.spawn(sys.argv[1:])' \
python3.9 -c 'import pty, sys; pty.spawn(sys.argv[1:])' \
| apt-get "$@" 2>&1 \
| tee -a "$logfile" \
|| { apt_get_exit_code="$?"; true; };