Skip to content

Commit 64740cd

Browse files
committed
move to cleaner arch detection
Signed-off-by: Azimjon Ulmasov <azimjon.ulmasov@chainguard.dev>
1 parent b10a5b1 commit 64740cd

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

pre_commit_hooks/shellcheck_run_steps.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ def main(argv: Sequence[str] | None = None) -> int:
111111
) as compiled_out:
112112
with open(filename) as precompiled_in:
113113
melange_cfg = yaml.load(precompiled_in)
114-
architectures = melange_cfg["package"].get("target-architecture", [])
115-
if not architectures:
116-
architectures = ["x86_64"]
117-
arch = architectures[0]
114+
arch = melange_cfg["package"].get("target-architecture", ["x86_64"])[0]
118115
subprocess.check_call(
119116
[
120117
"docker",

0 commit comments

Comments
 (0)