index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2019-04-11 21:11:57 +0200 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2019-04-11 21:11:57 +0200 |
commit | 15cdae12cc094d37763938c9021d06550a746a2d (patch) | |
tree | 23aa54709d8e61d38be415c3dfcbdb317687e3ee | |
parent | 2d4ae2745485890d333f5b08bb7e484b5abfce85 (diff) |
-rw-r--r-- | archinstall.py | 6 |
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() |