Skip to content

Commit

Permalink
fix: check test_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wy-luke committed Sep 5, 2023
1 parent 5f98696 commit 37416b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sd-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,12 @@ fi
echo "############ 开始安装 Stable Diffusion ################"
echo "############ Start to install Stable Diffusion ######"

if $test_mode; then
if "$test_mode" != 0; then
if ./webui.sh | grep -q 'Launching Web UI with arguments: '; then
clean_up
echo "############ Install Stable Diffusion successfully ###"
exit
fi
else
./webui.sh
clean_up
echo "############ Install Stable Diffusion successfully ###"
fi

0 comments on commit 37416b1

Please sign in to comment.