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-11-13 21:59:20 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-11-13 21:59:20 +0000
commit0ff066c813957d570f6561d59df6b3cf931536a8 (patch)
treeec03c269d792f098593f15b6b16a6eae77ad8a62 /archinstall.py
parent3c10bbfe272442ba9aa66202bad042dba9e622cd (diff)
Added /deployments/ twice. Silly me.
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/archinstall.py b/archinstall.py
index ae9e9c9d..b6fd9515 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -425,8 +425,8 @@ def get_application_instructions(target):
print('[N] No instructions found for: {}'.format(target))
print('[N] Trying local instructions under ./deployments/applications')
local_path = './deployments/applications' if os.path.isfile('./archinstall.py') else './archinstall/deployments/applications' # Dangerous assumption
- if os.path.isfile(f'{local_path}/deployments/applications/{target}.json'):
- with open(f'{local_path}/deployments/applications/{target}.json', 'r') as fh:
+ if os.path.isfile(f'{local_path}/{target}.json'):
+ with open(f'{local_path}/{target}.json', 'r') as fh:
instructions = fh.read()
print('[N] Found local application instructions for: {}'.format(target))
@@ -451,8 +451,8 @@ def get_instructions(target):
print('[N] No instructions found called: {}'.format(target))
print('[N] Trying local instructions under ./deployments')
local_path = './deployments' if os.path.isfile('./archinstall.py') else './archinstall/deployments' # Dangerous assumption
- if os.path.isfile(f'{local_path}/deployments/{target}.json'):
- with open(f'{local_path}/deployments/{target}.json', 'r') as fh:
+ if os.path.isfile(f'{local_path}/{target}.json'):
+ with open(f'{local_path}/{target}.json', 'r') as fh:
instructions = fh.read()
print('[N] Found local instructions called: {}'.format(target))