aboutsummaryrefslogtreecommitdiff
path: root/.macos
diff options
context:
space:
mode:
Diffstat (limited to '.macos')
-rw-r--r--.macos9
1 files changed, 3 insertions, 6 deletions
diff --git a/.macos b/.macos
index f28342f..888dd99 100644
--- a/.macos
+++ b/.macos
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-[ $(uname) = Darwin ] || return
+[ "$(uname)" = Darwin ] || return
export IS_MACOS=1
@@ -11,8 +11,5 @@ alias bug='brew upgrade --greedy'
echo 'Software installment is limited again. Password is required to remove the limit.' &&
sudo spctl --master-disable
-[ $(arch) = 'arm64' ] &&
- [ -x /opt/homebrew/bin/brew ] &&
- eval "$(/opt/homebrew/bin/brew shellenv)" ||
- [ -x /usr/local/Homebrew/bin/brew ] &&
- eval "$(/usr/local/Homebrew/bin/brew shellenv)"
+[ "$(arch)" = 'arm64' ] && eval "$(/opt/homebrew/bin/brew shellenv)"
+[ "$(arch)" = 'arm64' ] || eval "$(/usr/local/Homebrew/bin/brew shellenv)"