Merge pull request #45 from andrejusk/fix-cmatrix-install-script

Adjust the cmatrix install script to not run if running in a GitHub Codespace
This commit is contained in:
Andrejus Kostarevas
2024-08-05 20:49:45 +01:00
committed by GitHub

View File

@@ -5,6 +5,10 @@
# Install cmatrix. # 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 ! command -v "cmatrix" &>/dev/null; then
if [[ "$OSTYPE" == "linux-gnu"* ]]; then if [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt-get install -qq cmatrix &>/dev/null sudo apt-get install -qq cmatrix &>/dev/null
@@ -12,3 +16,4 @@ if ! command -v "cmatrix" &>/dev/null; then
brew install cmatrix brew install cmatrix
fi fi
fi fi
fi