From 15cdae12cc094d37763938c9021d06550a746a2d Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 11 Apr 2019 21:11:57 +0200 Subject: erm, echo was removed.. since it's part of the opts now --- archinstall.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archinstall.py') diff --git a/archinstall.py b/archinstall.py index 413ce171..26b1757e 100644 --- a/archinstall.py +++ b/archinstall.py @@ -176,19 +176,19 @@ class sys_command(): def simple_command(cmd, opts=None, *args, **kwargs): if not opts: opts = {} - if echo or 'debug' in opts: + if 'debug' in opts: print('[!] {}'.format(cmd)) handle = Popen(cmd, shell='True', stdout=PIPE, stderr=STDOUT, stdin=PIPE, **kwargs) output = b'' while handle.poll() is None: data = handle.stdout.read() if len(data): - if echo or 'debug' in opts: + if 'debug' in opts: print(data.decode('UTF-8'), end='') # print(data.decode('UTF-8'), end='') output += data data = handle.stdout.read() - if echo or 'debug' in opts: + if 'debug' in opts: print(data.decode('UTF-8'), end='') output += data handle.stdin.close() -- cgit v1.2.3-70-g09d2