diff --git a/script/install.d/81-cmatrix.sh b/script/install.d/81-cmatrix.sh index 1d5a082..caca04d 100644 --- a/script/install.d/81-cmatrix.sh +++ b/script/install.d/81-cmatrix.sh @@ -5,10 +5,15 @@ # 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 +# Check if running in a GitHub Codespace +if [ -n "$CODESPACES" ]; then + echo "Skipping cmatrix installation: Running in a GitHub Codespace" +else + 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 fi