feat: path and log improvements
This commit is contained in:
@@ -21,6 +21,13 @@ fi
|
||||
mkdir -p ~/.local/bin
|
||||
unset local_bin_path
|
||||
|
||||
# homebrew
|
||||
brew_path="/opt/homebrew/bin/brew"
|
||||
if [ -x "$brew_path" ]; then
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
fi
|
||||
unset brew_path
|
||||
|
||||
# workspace
|
||||
export WORKSPACE=${WORKSPACE:-"$HOME/Workspace"}
|
||||
mkdir -p "$WORKSPACE"
|
||||
|
||||
@@ -13,3 +13,5 @@ if ! command -v "terraform" &>/dev/null; then
|
||||
brew install hashicorp/tap/terraform
|
||||
fi
|
||||
fi
|
||||
|
||||
terraform --version
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
#
|
||||
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
if ! command -v cca &> /dev/null; 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
|
||||
fi
|
||||
|
||||
@@ -12,3 +12,5 @@ if ! command -v "neofetch" &>/dev/null; then
|
||||
brew install neofetch
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "$(neofetch --version)"
|
||||
|
||||
Reference in New Issue
Block a user