From ee4b02368089f67f0f2a26761fdacd7ec5bcaf04 Mon Sep 17 00:00:00 2001 From: uramer Date: Mon, 20 Feb 2023 22:43:45 +0100 Subject: [PATCH] Fix Luarocks PATH --- docs/source/generate_luadoc.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/source/generate_luadoc.sh b/docs/source/generate_luadoc.sh index a39cff5ca6..6ee65ffaab 100755 --- a/docs/source/generate_luadoc.sh +++ b/docs/source/generate_luadoc.sh @@ -4,15 +4,18 @@ DOCS_SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" FILES_DIR=$DOCS_SOURCE_DIR/../../files OUTPUT_DIR=$DOCS_SOURCE_DIR/reference/lua-scripting/generated_html -PATH=$PATH:~/lua-5.1.5/src -eval "$(luarocks path)" - -if [ ! command -v openmwluadocumentor &> /dev/null ]; then +if ! command -v openmwluadocumentor &> /dev/null +then if [ -f /.dockerenv ] || [ -f /home/docs/omw_luadoc_docker ]; then ./install_luadocumentor_in_docker.sh fi fi -if [ ! command -v openmwluadocumentor &> /dev/null ]; then + +PATH=$PATH:~/luarocks/bin +eval "$(luarocks path)" + +if ! command -v openmwluadocumentor &> /dev/null +then echo "openmwluadocumentor not found; See README.md for installation instructions." exit fi