change () to "" in .sh scripts because export AAA=(BBB CCC) sets AAA to BBB and does not export anything
whoever put that in .sh files - shame on you
This commit is contained in:
parent
9e892d90ce
commit
7476593014
2 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ install_dir="/home/$(whoami)"
|
||||||
clone_dir="stable-diffusion-webui"
|
clone_dir="stable-diffusion-webui"
|
||||||
|
|
||||||
# Commandline arguments for webui.py, for example: export COMMANDLINE_ARGS=(--medvram --opt-split-attention)
|
# Commandline arguments for webui.py, for example: export COMMANDLINE_ARGS=(--medvram --opt-split-attention)
|
||||||
export COMMANDLINE_ARGS=()
|
export COMMANDLINE_ARGS=""
|
||||||
|
|
||||||
# python3 executable
|
# python3 executable
|
||||||
python_cmd="python3"
|
python_cmd="python3"
|
||||||
|
@ -22,7 +22,7 @@ python_cmd="python3"
|
||||||
venv_dir="venv"
|
venv_dir="venv"
|
||||||
|
|
||||||
# install command for torch
|
# 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
|
# Requirements file to use for stable-diffusion-webui
|
||||||
#export REQS_FILE=""
|
#export REQS_FILE=""
|
||||||
|
|
2
webui.sh
2
webui.sh
|
@ -44,7 +44,7 @@ fi
|
||||||
# install command for torch
|
# install command for torch
|
||||||
if [[ -z "${TORCH_COMMAND}" ]]
|
if [[ -z "${TORCH_COMMAND}" ]]
|
||||||
then
|
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
|
fi
|
||||||
|
|
||||||
# Do not reinstall existing pip packages on Debian/Ubuntu
|
# Do not reinstall existing pip packages on Debian/Ubuntu
|
||||||
|
|
Loading…
Reference in a new issue