Commit 8d6e72db authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #15561 from speculativemoonstone/fix-launch-git-directories

Allow webui.sh to be runnable from arbitrary directories containing a .git file
parents 6f4f6bff ba2a737c
...@@ -113,13 +113,13 @@ then ...@@ -113,13 +113,13 @@ then
exit 1 exit 1
fi fi
if [[ -d .git ]] if [[ -d "$SCRIPT_DIR/.git" ]]
then then
printf "\n%s\n" "${delimiter}" printf "\n%s\n" "${delimiter}"
printf "Repo already cloned, using it as install directory" printf "Repo already cloned, using it as install directory"
printf "\n%s\n" "${delimiter}" printf "\n%s\n" "${delimiter}"
install_dir="${PWD}/../" install_dir="${SCRIPT_DIR}/../"
clone_dir="${PWD##*/}" clone_dir="${SCRIPT_DIR##*/}"
fi fi
# Check prerequisites # Check prerequisites
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment