Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0x committed Sep 26, 2023
1 parent 0cebbf2 commit dada133
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@ install_unix() {
zsh
fi

homebrew_prefix=""
prefix=""
case "$(uname)" in
Darwin)
homebrew_prefix="/opt/homebrew"
prefix="/opt/homebrew"
;;

Linux)
homebrew_prefix="/home/linuxbrew/.linuxbrew"
prefix="/home/linuxbrew/.linuxbrew"
;;
esac

if ! (command -v "$homebrew_prefix/bin/brew" > /dev/null 2>&1)
if ! (command -v "$prefix/bin/brew" > /dev/null 2>&1)
then
echo "Installing Homebrew..." >&2
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
else
echo "Homebrew is already installed." >&2
fi

[ -z "${HOMEBREW_PREFIX}" ] && eval "$($homebrew_prefix/bin/brew shellenv)"
[ -z "${HOMEBREW_PREFIX}" ] && eval "$($prefix/bin/brew shellenv)"

if [ "$(uname)" = "Darwin" ]
then
Expand Down

0 comments on commit dada133

Please sign in to comment.