Remove redundant boot-* and nokia-argon-sxmo.img image artifacts
This commit is contained in:
+1
-8
@@ -182,14 +182,7 @@ def resolve_default_bootloader():
|
||||
|
||||
|
||||
def resolve_default_image(device):
|
||||
candidates = [
|
||||
os.path.join(BASE_DIR, "images", f"bananarchy-{device}.img"),
|
||||
os.path.join(BASE_DIR, "images", "nokia-argon-sxmo.img"),
|
||||
]
|
||||
for cand in candidates:
|
||||
if os.path.isfile(cand):
|
||||
return cand
|
||||
return candidates[0]
|
||||
return os.path.join(BASE_DIR, "images", f"bananarchy-{device}.img")
|
||||
|
||||
|
||||
def parse_args():
|
||||
|
||||
Reference in New Issue
Block a user