From 9e17325207ad264daec10e7506ecee6db49ba1e2 Mon Sep 17 00:00:00 2001 From: jllllll <3887729+jllllll@users.noreply.github.com> Date: Sat, 5 Aug 2023 08:26:24 -0500 Subject: [PATCH] Add CMD_FLAGS.txt functionality to WSL installer (#119) --- generate_zips.sh | 2 +- wsl.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/generate_zips.sh b/generate_zips.sh index cdc2cc4..f313174 100644 --- a/generate_zips.sh +++ b/generate_zips.sh @@ -1,6 +1,6 @@ mkdir oobabooga_{windows,linux,macos,wsl} for p in windows macos linux wsl; do - if [ "$p" == "wsl" ]; then cp {*$p*\.*,webui.py,INSTRUCTIONS-WSL.txt} oobabooga_$p; + if [ "$p" == "wsl" ]; then cp {*$p*\.*,webui.py,INSTRUCTIONS-WSL.txt,CMD_FLAGS.txt} oobabooga_$p; else cp {*$p*\.*,webui.py,INSTRUCTIONS.txt,CMD_FLAGS.txt} oobabooga_$p; fi zip -r oobabooga_$p.zip oobabooga_$p; done diff --git a/wsl.sh b/wsl.sh index 2d5d540..50b8d77 100644 --- a/wsl.sh +++ b/wsl.sh @@ -46,6 +46,7 @@ if [[ "$INSTALL_DIR" =~ " " ]]; then echo This script relies on Miniconda which # create install dir if missing and copy webui.py to install dir to maintain functionality without edit if [ ! -d "$INSTALL_DIR" ]; then mkdir -p "$INSTALL_DIR" || exit; fi cp -u "./webui.py" "$INSTALL_DIR" +if [ -f "./CMD_FLAGS.txt" ]; then cp -u "./CMD_FLAGS.txt" "$INSTALL_DIR"; fi # figure out whether git and conda needs to be installed if "$CONDA_ROOT_PREFIX/bin/conda" --version &>/dev/null; then conda_exists="T"; fi