fix: pfetch arm64
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Peter 2023-08-23 22:39:58 +02:00
parent a373700967
commit 98a8ea2a77
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9

View file

@ -8,7 +8,17 @@ current_arch="$(uname -m)"
command -v starship &> /dev/null || mkdir -p $HOME/.local/bin && curl -sS https://starship.rs/install.sh | sudo -E sh -s -- --yes --bin-dir $HOME/.local/bin
# pfetch
command -v pfetch &> /dev/null || curl -L "https://github.com/Gobidev/pfetch-rs/releases/latest/download/pfetch-linux-gnu-$(uname -m).tar.gz" | sudo tar -xvz -C $HOME/.local/bin
case $current_arch in
x86_64)
command -v pfetch &> /dev/null || curl -L "https://github.com/Gobidev/pfetch-rs/releases/latest/download/pfetch-linux-gnu-x86_64.tar.gz" | sudo tar -xvz -C $HOME/.local/bin
;;
aarch64)
command -v pfetch &> /dev/null || curl -L "https://github.com/Gobidev/pfetch-rs/releases/latest/download/pfetch-linux-musl-aarch64.tar.gz" | sudo tar -xvz -C $HOME/.local/bin
;;
*)
echo "Unsupported architecture: $current_arch"
exit 1
esac
# Go
case $current_arch in