Compare commits

..

2 Commits

Author SHA1 Message Date
PorridgePi
38568dba85 bootstrap: lsd: feat: Add check if lsd is installed 2022-09-28 19:50:53 +08:00
PorridgePi
6f27d492ec bootstrap: lsd: fix: Add missing fi 2022-09-28 19:50:31 +08:00

View File

@@ -1,4 +1,7 @@
if [[ "$OSNAME" == "Linux" ]]; then
if ! command -v lsd &> /dev/null; then
echo 'Installing lsd'
if [[ "$OSNAME" == "Linux" ]]; then
# Linux
if [[ "DISTRO_TYPE" == "debian" ]]; then
# Debian-based
@@ -10,12 +13,16 @@ if [[ "$OSNAME" == "Linux" ]]; then
echo 'ERROR: Unknown distro'
echo 'Exiting...'
exit 1
elif [[ "$OSNAME" == "macOS" ]]; then
fi
elif [[ "$OSNAME" == "macOS" ]]; then
# macOS
brew install lsd
else
else
# Unknown
echo 'ERROR: Unknown OS'
echo 'Exiting...'
exit 1
fi
fi
echo 'lsd is installed'