index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2019-04-14 21:30:35 +0200 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2019-04-14 21:30:35 +0200 |
commit | 65aed10fa2c56dcce38bfbd6059e64a67f7118e6 (patch) | |
tree | 46ecdc3ba8ad8024f211122de0bc64a187036260 /archinstall.py | |
parent | 35cfef9857ba198b3efd829f532b816cee886975 (diff) |
-rw-r--r-- | archinstall.py | 6 |
diff --git a/archinstall.py b/archinstall.py index eaff3409..afb22d65 100644 --- a/archinstall.py +++ b/archinstall.py @@ -186,16 +186,12 @@ class sys_command(): yield output - print('Debug...') # Since we're in a subsystem, we gotta bail out! # Bail bail bail! os.write(child_fd, b'shutdown now\n') - print('Shutdown initatied') - exit_code = os.waitpid(self.pid, 0)[1] - print('Exit code:', exit_code) if exit_code != 0: print('[E] Command "{}" exited with status code:'.format(self.cmd[0]), exit_code) print(trace_log) @@ -641,7 +637,7 @@ if __name__ == '__main__': del(opts['pass-args']) elif 'format' in opts: del(opts['format']) - else: + elif ('debug' in opts and opts['debug']) or ('debug' in conf and conf['debug']): print('[-] Options: {}'.format(opts)) if 'pass-args' in opts and opts['pass-args']: command = command.format(**args) |