changed block location

This commit is contained in:
Yash Tripathi 2021-06-06 08:35:26 +05:30 committed by GitHub
parent 419b058b6f
commit 158dbbf8f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -43,14 +43,14 @@ def initialize_arguments():
if not parsed_url.scheme: # The Profile was not a direct match on a remote URL, it must be a local file.
with open(args.config) as file:
config = json.load(file)
if args.creds is not None:
with open(args.creds) as file:
config.update(json.load(file))
else: # Attempt to load the configuration from the URL.
with urllib.request.urlopen(urllib.request.Request(args.config, headers={'User-Agent': 'ArchInstall'})) as response:
config = json.loads(response.read())
except Exception as e:
print(e)
if args.creds is not None:
with open(args.creds) as file:
config.update(json.load(file))
# Installation can't be silent if config is not passed
config["silent"] = args.silent
for arg in unknowns: