Skip to content

Commit

Permalink
Allow webui.sh to be runnable from directories containing a .git file
Browse files Browse the repository at this point in the history
  • Loading branch information
speculativemoonstone authored Apr 18, 2024
1 parent adadb4e commit ba2a737
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 ba2a737

Please sign in to comment.