Skip to content

Commit

Permalink
Merge pull request AUTOMATIC1111#15561 from speculativemoonstone/fix-…
Browse files Browse the repository at this point in the history
…launch-git-directories

Allow webui.sh to be runnable from arbitrary directories containing a .git file
  • Loading branch information
AUTOMATIC1111 authored Apr 21, 2024
2 parents 6f4f6bf + ba2a737 commit 8d6e72d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ then
exit 1
fi

if [[ -d .git ]]
if [[ -d "$SCRIPT_DIR/.git" ]]
then
printf "\n%s\n" "${delimiter}"
printf "Repo already cloned, using it as install directory"
printf "\n%s\n" "${delimiter}"
install_dir="${PWD}/../"
clone_dir="${PWD##*/}"
install_dir="${SCRIPT_DIR}/../"
clone_dir="${SCRIPT_DIR##*/}"
fi

# Check prerequisites
Expand Down

0 comments on commit 8d6e72d

Please sign in to comment.