Skip to content

Commit

Permalink
change () to "" in .sh scripts because export AAA=(BBB CCC) sets AAA …
Browse files Browse the repository at this point in the history
…to BBB and does not export anything

whoever put that in .sh files - shame on you
  • Loading branch information
AUTOMATIC1111 committed Sep 18, 2022
1 parent 9e892d9 commit 7476593
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webui-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ install_dir="/home/$(whoami)"
clone_dir="stable-diffusion-webui"

# Commandline arguments for webui.py, for example: export COMMANDLINE_ARGS=(--medvram --opt-split-attention)
export COMMANDLINE_ARGS=()
export COMMANDLINE_ARGS=""

# python3 executable
python_cmd="python3"
Expand All @@ -22,7 +22,7 @@ python_cmd="python3"
venv_dir="venv"

# install command for torch
export TORCH_COMMAND=(python3 -m pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113)
export TORCH_COMMAND="python3 -m pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113"

# Requirements file to use for stable-diffusion-webui
#export REQS_FILE=""
Expand Down
2 changes: 1 addition & 1 deletion webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fi
# install command for torch
if [[ -z "${TORCH_COMMAND}" ]]
then
export TORCH_COMMAND=(python3 -m pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113)
export TORCH_COMMAND="python3 -m pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113"
fi

# Do not reinstall existing pip packages on Debian/Ubuntu
Expand Down

0 comments on commit 7476593

Please sign in to comment.