Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2019-12-26 14:08:20 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-12-26 14:08:20 +0000
commit91da324df009e35a61f39e0f9785ae0a1b24205e (patch)
tree92027c76228e90232bb9fb7a8ed85bfaed6018e9 /archinstall.py
parent40939d207e2d74c014571984c5f302425b49eebc (diff)
Error check on get_instructions to ignore .json at the end.
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/archinstall.py b/archinstall.py
index 0bbe364b..4802b30f 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -720,6 +720,7 @@ def get_local_instructions(target):
def get_instructions(target, *positionals, **kwargs):
instructions = oDict()
+ if target[0-len('.json'):] == '.json': target = target[:0-len('.json')]
log(f'Fetching instructions for {target}', level=4, origin='get_instructions')
if get_default_gateway_linux():
try: