Merge pull request #41023 from tvbeat/lua-path-fix

lua packages: add init.lua to modules search path
This commit is contained in:
Matthew Justin Bauer 2018-06-01 23:05:48 -04:00 committed by GitHub
commit 4ca9f84416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,9 +29,9 @@ else
if [[ $LUA_PATH = *"$package_path"* ]]; then return; fi
if [[ -z $LUA_PATH ]]; then
export LUA_PATH="$package_path/?.lua"
export LUA_PATH="$package_path/?.lua;$package_path/?/init.lua"
else
export LUA_PATH="$LUA_PATH;$package_path/?.lua"
export LUA_PATH="$LUA_PATH;$package_path/?.lua;$package_path/?/init.lua"
fi
}