Skip to content

Commit

Permalink
fix: fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-luke committed Sep 5, 2023
1 parent b3feaef commit 212a622
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sd-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ net_connected=true
# Other variables
code_path="$installation_path/stable-diffusion-webui"
brew_installer_path="$tmp_path/brew_installer.sh"
brew_pkg_path="/usr/local/opt/micromamba/bin"

brew_pkg_path="/usr/local"
if [[ $(uname -p) == 'arm' ]]; then
echo "Apple Silicon"
brew_pkg_path="/opt/homebrew/bin"
brew_pkg_path="/opt/homebrew"
fi
brew_path="$brew_pkg_path/brew"
mamba_path="$brew_pkg_path/micromamba"
brew_path="$brew_pkg_path/bin/brew"
mamba_path="$brew_pkg_path/opt/micromamba/bin/micromamba"

test_mode=0 # Only for test. 0 for no test, 1 for yes-test, 2 for no-test

function clean_up {
Expand Down

0 comments on commit 212a622

Please sign in to comment.