From e521b859a7d770adba00bd23dc0e4c4d8823e8fa Mon Sep 17 00:00:00 2001 From: Szymon Osiecki Date: Mon, 4 Nov 2024 17:52:57 +0100 Subject: [PATCH] fix(sh): install_eza --- .assets/provision/install_eza.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.assets/provision/install_eza.sh b/.assets/provision/install_eza.sh index a5705655..15655b10 100755 --- a/.assets/provision/install_eza.sh +++ b/.assets/provision/install_eza.sh @@ -51,13 +51,13 @@ fi printf "\e[92minstalling \e[1m$APP\e[0m\n" >&2 case $SYS_ID in alpine) - apk add --no-cache $APP >&2 2>/dev/null + apk add --no-cache $APP >&2 2>/dev/null || binary=true && lib='musl' ;; arch) - pacman -Sy --needed --noconfirm $APP >&2 2>/dev/null || binary=true + pacman -Sy --needed --noconfirm $APP >&2 2>/dev/null || binary=true && lib='gnu' ;; fedora) - dnf install -y $APP >&2 2>/dev/null || binary=true + dnf install -y $APP >&2 2>/dev/null || binary=true && lib='gnu' ;; debian | ubuntu) export DEBIAN_FRONTEND=noninteractive @@ -67,13 +67,13 @@ debian | ubuntu) fi echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" >/etc/apt/sources.list.d/gierens.list chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list - apt-get update >&2 && apt-get install -y $APP >&2 2>/dev/null || binary=true + apt-get update >&2 && apt-get install -y $APP >&2 2>/dev/null || binary=true && lib='gnu' ;; opensuse) - zypper in -y $APP >&2 2>/dev/null || binary=true + zypper in -y $APP >&2 2>/dev/null || binary=true && lib='gnu' ;; *) - binary=true + binary=true && lib='gnu' ;; esac