bootstrap: lsd: fix: Create temp folder before curl

This commit is contained in:
PorridgePi
2022-09-28 20:03:47 +08:00
parent d00c4b29b7
commit 4c786207ab

View File

@@ -9,8 +9,9 @@ if ! command -v lsd &> /dev/null; 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"
sudo dpkg -i /temp/lsd.deb
mkdir ~/.temp
curl -o ~/.temp/lsd.deb "$URL"
sudo dpkg -i ~/.temp/lsd.deb
else
# Unknown distro
echo 'ERROR: Unknown distro'