Commit ba2a737c authored by Speculative Moonstone's avatar Speculative Moonstone Committed by GitHub

Allow webui.sh to be runnable from directories containing a .git file

parent adadb4e3
......@@ -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
......
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