Fix prerequisites check in webui.sh

- Check the actually used `$python_cmd` and `$GIT` executables instead
  of the hardcoded ones
- Fix typo in comment
This commit is contained in:
Daniel M 2022-10-14 20:50:21 +02:00 committed by AUTOMATIC1111
parent f756bc540a
commit 6a4e846710

View file

@ -82,8 +82,8 @@ then
clone_dir="${PWD##*/}"
fi
# Check prequisites
for preq in git python3
# Check prerequisites
for preq in "${GIT}" "${python_cmd}"
do
if ! hash "${preq}" &>/dev/null
then