From 65aed10fa2c56dcce38bfbd6059e64a67f7118e6 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 14 Apr 2019 21:30:35 +0200 Subject: Added more templates and removed debugging --- archinstall.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'archinstall.py') 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) -- cgit v1.2.3-70-g09d2