From 39976567ed7b4d9cf1c5a3cd1963906a9e22b83b Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 13 Jun 2025 19:23:15 -0600 Subject: [PATCH] support plain fedora --- run_once_after_install2.sh.tmpl | 2 +- run_once_before_install.sh.tmpl | 2 +- run_onchange_install-packages.sh.tmpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 -}}