Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
  • Loading branch information
czy21 committed Dec 24, 2024
1 parent ecac13e commit 388f6d1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/scripts/gen_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ def flat(a) -> list: return sum(map(flat, a), []) if isinstance(a, list) else [a
for i,t in enumerate(packages):
t_result=Template(t).render(global_profiles_obj["packages"])
packages[i] = t_result

packages_str = " ".join(packages)

if packages:
cmd_arr.append(f"PACKAGES=\"{packages_str}\"")
cmd_arr.append(f"PACKAGES=\"{' '.join(packages)}\"")

if image_builder_config:
cmd_arr.append(" ".join(image_builder_config))
cmd_arr.append(' '.join(image_builder_config))

cmd_str = " ".join(cmd_arr)
cmd_str = ' '.join(cmd_arr)
os.system(f"echo \'{cmd_str}\'")
os.system(cmd_str)

0 comments on commit 388f6d1

Please sign in to comment.