From 71d82cc8c4b3d9dd1fc9574916849306e67cff9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Wed, 19 Oct 2022 05:49:36 +0100 Subject: [PATCH] Update install-uvtools.sh --- Scripts/install-uvtools.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Scripts/install-uvtools.sh b/Scripts/install-uvtools.sh index e990502..9594dfd 100644 --- a/Scripts/install-uvtools.sh +++ b/Scripts/install-uvtools.sh @@ -37,7 +37,7 @@ if [ "${OSTYPE:0:6}" == "darwin" ]; then if [ -z "$(command -v brew)" ]; then bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - if [ -f "/opt/homebrew/bin/brew" ]; then + if [ -f "/opt/homebrew/bin/brew" -a -z "$(command -v brew)" ]; then echo '# Set PATH, MANPATH, etc., for Homebrew.' >> "$HOME/.zprofile" echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> "$HOME/.zprofile" eval "$(/opt/homebrew/bin/brew shellenv)" @@ -143,4 +143,3 @@ else fi echo "UVtools will now run." -