From 81325b2e95b955fa3f63f10c0488c7ab610ca614 Mon Sep 17 00:00:00 2001 From: aloslider <53711835+aloslider@users.noreply.github.com> Date: Wed, 22 Apr 2026 02:06:32 +0300 Subject: [PATCH] Fix os check --- .chezmoiscripts/run_once_install-neovim.sh.tmpl | 2 +- .../run_onchange_before_10_install-packages.sh.tmpl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.chezmoiscripts/run_once_install-neovim.sh.tmpl b/.chezmoiscripts/run_once_install-neovim.sh.tmpl index b823bff..61300e3 100755 --- a/.chezmoiscripts/run_once_install-neovim.sh.tmpl +++ b/.chezmoiscripts/run_once_install-neovim.sh.tmpl @@ -20,7 +20,7 @@ echo "Target folder: ${SRC_DIR}" echo "Branch: ${BRANCH}" echo "Build type: ${BUILD_TYPE}" -{{ if eq .chezmoi.osRelease.idLike "arch" }} +{{ if or (eq .chezmoi.osRelease.id "arch") (eq .chezmoi.osRelease.id "cachyos") }} sudo pacman -S --noconfirm --needed base-devel cmake ninja curl git {{ end }} diff --git a/.chezmoiscripts/run_onchange_before_10_install-packages.sh.tmpl b/.chezmoiscripts/run_onchange_before_10_install-packages.sh.tmpl index 3216a5c..ecb7f29 100755 --- a/.chezmoiscripts/run_onchange_before_10_install-packages.sh.tmpl +++ b/.chezmoiscripts/run_onchange_before_10_install-packages.sh.tmpl @@ -7,7 +7,7 @@ set -euo pipefail echo "Installing and updating packages..." -{{ if eq .chezmoi.osRelease.idLike "arch" }} +{{ if or (eq .chezmoi.osRelease.id "arch") (eq .chezmoi.osRelease.id "cachyos") }} sudo pacman -Sy --noconfirm pkgs=() @@ -33,7 +33,6 @@ if [[ ${#aur_pkgs[@]} -gt 0 ]]; then echo "Installing AUR packages" paru -S --noconfirm --needed "${aur_pkgs[@]}" fi - {{ end }} echo "Done"