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>2018-06-06 17:15:04 +0200
committerGitHub <noreply@github.com>2018-06-06 17:15:04 +0200
commit3ff1e2e6cd2f6203f1c78c5a0c927ea52b4ac4bf (patch)
treeb94c6c17cbe96b65bfdcf1088a18204185df6946
parent96b8669b0af43b2bf9393e9c2792fd60e36b87ad (diff)
Logical miss on if statement.
-rw-r--r--archinstall.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/archinstall.py b/archinstall.py
index 42d3ff65..0f3182e9 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -257,10 +257,11 @@ if __name__ == '__main__':
for key, val in instructions['args'].items():
args[key] = val
- ## TODO: Reuseable code, there's to many get_instructions, merge_dictgs and args updating going on.
- ## Update arguments if we found any
- for key, val in instructions['args'].items():
- args[key] = val
+ if 'args' in instructions:
+ ## TODO: Reuseable code, there's to many get_instructions, merge_dictgs and args updating going on.
+ ## Update arguments if we found any
+ for key, val in instructions['args'].items():
+ args[key] = val
if args['password'] == '<STDIN>': args['password'] = input('Enter a disk (and root) password: ')
print(args)