Fix os check
This commit is contained in:
@@ -20,7 +20,7 @@ echo "Target folder: ${SRC_DIR}"
|
|||||||
echo "Branch: ${BRANCH}"
|
echo "Branch: ${BRANCH}"
|
||||||
echo "Build type: ${BUILD_TYPE}"
|
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
|
sudo pacman -S --noconfirm --needed base-devel cmake ninja curl git
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ set -euo pipefail
|
|||||||
|
|
||||||
echo "Installing and updating packages..."
|
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
|
sudo pacman -Sy --noconfirm
|
||||||
|
|
||||||
pkgs=()
|
pkgs=()
|
||||||
@@ -33,7 +33,6 @@ if [[ ${#aur_pkgs[@]} -gt 0 ]]; then
|
|||||||
echo "Installing AUR packages"
|
echo "Installing AUR packages"
|
||||||
paru -S --noconfirm --needed "${aur_pkgs[@]}"
|
paru -S --noconfirm --needed "${aur_pkgs[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|||||||
Reference in New Issue
Block a user