Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-04-11 21:11:57 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-04-11 21:11:57 +0200
commit15cdae12cc094d37763938c9021d06550a746a2d (patch)
tree23aa54709d8e61d38be415c3dfcbdb317687e3ee
parent2d4ae2745485890d333f5b08bb7e484b5abfce85 (diff)
erm, echo was removed.. since it's part of the opts now
-rw-r--r--archinstall.py6
1 files changed, 3 insertions, 3 deletions
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()