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:
@@ -5,10 +5,15 @@
|
||||
# Install cmatrix.
|
||||
#
|
||||
|
||||
if ! command -v "cmatrix" &>/dev/null; then
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user