perf: install env checks
This commit is contained in:
@@ -6,17 +6,20 @@
|
||||
#
|
||||
|
||||
if ! command -v neofetch &>/dev/null; then
|
||||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
||||
if command -v apt-get >/dev/null 2>&1; then
|
||||
case "$DOTS_PKG" in
|
||||
apt)
|
||||
sudo apt-get install -qq neofetch &>/dev/null
|
||||
elif command -v pacman >/dev/null 2>&1; then
|
||||
;;
|
||||
pacman)
|
||||
yay -S --noconfirm neofetch &>/dev/null
|
||||
else
|
||||
;;
|
||||
brew)
|
||||
brew install neofetch
|
||||
;;
|
||||
*)
|
||||
log_warn "Skipping neofetch install: no supported package manager found"
|
||||
fi
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
brew install neofetch
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
echo "$(neofetch --version)"
|
||||
|
||||
Reference in New Issue
Block a user