bootstrap: lsd: fix: Change ARCH from aarch64 to arm64

This commit is contained in:
PorridgePi
2022-09-28 20:00:59 +08:00
parent 0eaf934c15
commit a90c3b4ace

View File

@@ -5,7 +5,10 @@ if ! command -v lsd &> /dev/null; then
# Linux # Linux
if [[ "$DISTRO_TYPE" == "debian" ]]; then if [[ "$DISTRO_TYPE" == "debian" ]]; then
# Debian-based # Debian-based
URL=$(curl -s https://api.github.com/repos/Peltoche/lsd/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep $(uname -m) | grep -v musl) if [[ "$ARCH" == "aarch64" ]]; then
ARCH=arm64
fi
URL=$(curl -s https://api.github.com/repos/Peltoche/lsd/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep $ARCH | grep -v musl)
curl -o /temp/lsd.deb "$URL" curl -o /temp/lsd.deb "$URL"
sudo dpkg -i /temp/lsd.deb sudo dpkg -i /temp/lsd.deb
else else