From 65828824d501068d3ca680ee2abc23031e6d386c Mon Sep 17 00:00:00 2001 From: Typas Liao Date: Fri, 3 Jul 2026 00:56:04 +0800 Subject: [PATCH] feat(cachyos): install unzip for fnm installer The fnm install script aborts without unzip; the node recipe needs it. Co-Authored-By: Claude Opus 4.8 --- os-init/cachyos-init.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/os-init/cachyos-init.sh b/os-init/cachyos-init.sh index 33c0877..e7482d4 100644 --- a/os-init/cachyos-init.sh +++ b/os-init/cachyos-init.sh @@ -5,19 +5,19 @@ D_LOC="${D_LOC:?D_LOC must be set}" sudo -v prompt() { - local available=$(($(tput cols) - ${#1} - 2)) - local left=$((available / 2)) - local right=$((available - left)) + local available=$(($(tput cols) - ${#1} - 2)) + local left=$((available / 2)) + local right=$((available - left)) - test $left -gt 0 && printf -- "=%.0s" $(seq 1 $left) - printf " %s " "$1" - test $right -gt 0 && printf -- "=%.0s" $(seq 1 $right) - echo "" + test $left -gt 0 && printf -- "=%.0s" $(seq 1 $left) + printf " %s " "$1" + test $right -gt 0 && printf -- "=%.0s" $(seq 1 $right) + echo "" } prompt "system package installations" -PACKAGES=(fd eza ripgrep sd dust clang shellcheck typst openssh gcc cmake curl fontconfig p7zip) +PACKAGES=(fd eza ripgrep sd dust clang shellcheck typst openssh gcc cmake curl fontconfig p7zip unzip) if [[ -z "${DOTFILES_SKIP_UPDATE:-}" ]]; then - sudo pacman -Syu --noconfirm + sudo pacman -Syu --noconfirm fi sudo pacman -S --needed --noconfirm --ask=4 "${PACKAGES[@]}" 2>&1 | { grep -Ev 'is up to date -- skipping|there is nothing to do' || true; }