浏览代码

Fix prerequisites check in webui.sh

- Check the actually used `$python_cmd` and `$GIT` executables instead
  of the hardcoded ones
- Fix typo in comment
Daniel M 2 年之前
父节点
当前提交
6a4e846710
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      webui.sh

+ 2 - 2
webui.sh

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