bootstrap: lsd: Initial commit
This commit is contained in:
21
.config/yadm/bootstrap.d/lsd.sh
Executable file
21
.config/yadm/bootstrap.d/lsd.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
if [[ "$OSNAME" == "Linux" ]]; then
|
||||||
|
# Linux
|
||||||
|
if [[ "DISTRO_TYPE" == "debian" ]]; then
|
||||||
|
# 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)
|
||||||
|
curl -o /temp/lsd.deb "$URL"
|
||||||
|
sudo dpkg -i /temp/lsd.deb
|
||||||
|
else
|
||||||
|
# Unknown distro
|
||||||
|
echo 'ERROR: Unknown distro'
|
||||||
|
echo 'Exiting...'
|
||||||
|
exit 1
|
||||||
|
elif [[ "$OSNAME" == "macOS" ]]; then
|
||||||
|
# macOS
|
||||||
|
brew install lsd
|
||||||
|
else
|
||||||
|
# Unknown
|
||||||
|
echo 'ERROR: Unknown OS'
|
||||||
|
echo 'Exiting...'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user