diff --git a/run_once_after_install2.sh.tmpl b/run_once_after_install2.sh.tmpl index b10778a..7ce1c74 100644 --- a/run_once_after_install2.sh.tmpl +++ b/run_once_after_install2.sh.tmpl @@ -7,7 +7,7 @@ echo "[-] Running post-installation script [-]" {{- if eq .chezmoi.osRelease.id "alpine" }} echo "Alpine Linux detected" -{{- else if eq .chezmoi.osRelease.idLike "fedora" }} +{{- else if (or (eq .chezmoi.osRelease.id "fedora") (eq .chezmoi.osRelease.idLike "fedora")) }} echo "Fedora Linux detected" {{- else if (eq .chezmoi.osRelease.id "debian" "ubuntu" "zorin") }} diff --git a/run_once_before_install.sh.tmpl b/run_once_before_install.sh.tmpl index d373d22..93b19eb 100644 --- a/run_once_before_install.sh.tmpl +++ b/run_once_before_install.sh.tmpl @@ -6,7 +6,7 @@ echo "[-] Running pre-installation script [-]" {{- if eq .chezmoi.osRelease.id "alpine" }} echo "Alpine Linux detected" -{{- else if eq .chezmoi.osRelease.idLike "fedora" }} +{{- else if (or (eq .chezmoi.osRelease.id "fedora") (eq .chezmoi.osRelease.idLike "fedora")) }} echo "Fedora Linux detected" {{- else if (eq .chezmoi.osRelease.id "debian" "ubuntu" "zorin") }} diff --git a/run_onchange_install-packages.sh.tmpl b/run_onchange_install-packages.sh.tmpl index b615a5c..86afe80 100644 --- a/run_onchange_install-packages.sh.tmpl +++ b/run_onchange_install-packages.sh.tmpl @@ -11,7 +11,7 @@ apk update {{ range .packages.linux.apks -}} apk add {{ . | quote }} {{ end -}} -{{- else if eq .chezmoi.osRelease.idLike "fedora" }} +{{- else if (or (eq .chezmoi.osRelease.id "fedora") (eq .chezmoi.osRelease.idLike "fedora")) }} {{ range .packages.linux.dnfs -}} sudo dnf install -y {{ . | quote }} {{ end -}}