From 34e5b0005533b1197d600c93715b396d9fc7a9e6 Mon Sep 17 00:00:00 2001 From: Andrejus Date: Sat, 8 Jun 2024 15:40:57 +0100 Subject: [PATCH] feat: install cmatrix --- script/install.d/81-cmatrix.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 script/install.d/81-cmatrix.sh diff --git a/script/install.d/81-cmatrix.sh b/script/install.d/81-cmatrix.sh new file mode 100644 index 0000000..1d5a082 --- /dev/null +++ b/script/install.d/81-cmatrix.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +# ----------------------------------------------------------------------------- +# Description: +# Install cmatrix. +# + +if ! command -v "cmatrix" &>/dev/null; then + if [[ "$OSTYPE" == "linux-gnu"* ]]; then + sudo apt-get install -qq cmatrix &>/dev/null + elif [[ "$OSTYPE" == "darwin"* ]]; then + brew install cmatrix + fi +fi