perf: install env checks
This commit is contained in:
@@ -5,12 +5,11 @@
|
||||
# (macOS only) Install Colour Contrast Analyser (CCA).
|
||||
#
|
||||
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
if ! brew list --cask colour-contrast-analyser &> /dev/null; then
|
||||
brew install --cask colour-contrast-analyser
|
||||
else
|
||||
echo "Colour Contrast Analyser (CCA) is already installed."
|
||||
fi
|
||||
# macOS only
|
||||
[[ "$DOTS_OS" != "macos" ]] && { log_warn "Skipping: Not macOS"; return 0; }
|
||||
|
||||
if ! brew list --cask colour-contrast-analyser &> /dev/null; then
|
||||
brew install --cask colour-contrast-analyser
|
||||
else
|
||||
log_warn "Skipping: Not macOS"
|
||||
echo "Colour Contrast Analyser (CCA) is already installed."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user