From 91da324df009e35a61f39e0f9785ae0a1b24205e Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 26 Dec 2019 14:08:20 +0000 Subject: Error check on get_instructions to ignore .json at the end. --- archinstall.py | 1 + 1 file changed, 1 insertion(+) (limited to 'archinstall.py') 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: -- cgit v1.2.3-70-g09d2