From 90ea9beba3ad1de72ad8a7416a2712d1c900427a Mon Sep 17 00:00:00 2001 From: SoulHarsh007 Date: Sun, 27 Oct 2024 20:55:35 +0530 Subject: [PATCH] fix: use profile variable directly Signed-off-by: SoulHarsh007 --- util-iso.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/util-iso.sh b/util-iso.sh index 0730124..e64846a 100755 --- a/util-iso.sh +++ b/util-iso.sh @@ -109,11 +109,8 @@ generate_version_tag() { } generate_edition_tag() { - local _profile="$1" - local _edition="$2" - if [ "$_profile" == "desktop" ]; then - echo "${_edition}" > ${src_dir}/archiso/airootfs/etc/edition-tag - fi + local _edition="$1" + echo "${_edition}" > ${src_dir}/archiso/airootfs/etc/edition-tag } modify_mkarchiso() { @@ -154,7 +151,7 @@ prepare_profile(){ generate_version_tag "${profile}" "${_iso_version}" # Write out edition to be able to check ISO edition - generate_edition_tag "${profile}" "desktop" + generate_edition_tag "${profile}" iso_file=$(gen_iso_fn).iso }