bootstrap: lsd: fix: Add L flag to curl to follow redirection

This commit is contained in:
PorridgePi
2022-09-28 20:08:15 +08:00
parent 0bfdfbffb6
commit 441bf78df2

View File

@@ -10,7 +10,7 @@ if ! command -v lsd &> /dev/null; then
fi 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) 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)
mkdir -p ~/.temp mkdir -p ~/.temp
curl -o ~/.temp/lsd.deb "$URL" curl -L -o ~/.temp/lsd.deb "$URL"
sudo dpkg -i ~/.temp/lsd.deb sudo dpkg -i ~/.temp/lsd.deb
rm ~/.temp/lsd.deb rm ~/.temp/lsd.deb
else else