From 212a622f51d2ccd4bc7139aeeb3b6b5ed4cc81b0 Mon Sep 17 00:00:00 2001 From: wy-luke Date: Tue, 5 Sep 2023 21:31:47 +0800 Subject: [PATCH] fix: fix path --- sd-installer.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sd-installer.sh b/sd-installer.sh index b74b29a..e5b1489 100644 --- a/sd-installer.sh +++ b/sd-installer.sh @@ -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 {