Skip to content

Commit

Permalink
fix(sh): install_eza
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonos committed Nov 5, 2024
1 parent 8fbee27 commit e521b85
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .assets/provision/install_eza.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit e521b85

Please sign in to comment.