feat: install script re-org
This commit is contained in:
27
install.d/81-cmatrix.sh
Executable file
27
install.d/81-cmatrix.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Description:
|
||||
# Install cmatrix.
|
||||
#
|
||||
|
||||
# skip if in Codespaces
|
||||
[[ "$DOTS_ENV" == "codespaces" ]] && { log_skip "Codespaces"; return 0; }
|
||||
|
||||
if ! command -v cmatrix &> /dev/null; then
|
||||
case "$DOTS_PKG" in
|
||||
apt)
|
||||
sudo apt-get install -qq cmatrix &>/dev/null
|
||||
;;
|
||||
pacman)
|
||||
sudo pacman -S --noconfirm cmatrix &>/dev/null
|
||||
;;
|
||||
brew)
|
||||
brew install cmatrix
|
||||
;;
|
||||
*)
|
||||
log_warn "Skipping cmatrix install: no supported package manager found"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
log_pass "cmatrix installed"
|
||||
Reference in New Issue
Block a user