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,3 +1,6 @@
if ! command -v lsd &> /dev/null; then
echo 'Installing lsd'
if [[ "$OSNAME" == "Linux" ]]; then
# Linux
if [[ "DISTRO_TYPE" == "debian" ]]; then
@@ -10,6 +13,7 @@ if [[ "$OSNAME" == "Linux" ]]; then
echo 'ERROR: Unknown distro'
echo 'Exiting...'
exit 1
fi
elif [[ "$OSNAME" == "macOS" ]]; then
# macOS
brew install lsd
@@ -19,3 +23,6 @@ else
echo 'Exiting...'
exit 1
fi
fi
echo 'lsd is installed'