diff --git a/src/lua/devcontainer-feature.json b/src/lua/devcontainer-feature.json index 7ead9b1..1603bcc 100644 --- a/src/lua/devcontainer-feature.json +++ b/src/lua/devcontainer-feature.json @@ -1,13 +1,13 @@ { "name": "Lua", "id": "lua", - "version": "1.0.0", + "version": "1.1.0", "description": "Installs Lua", "documentationURL": "https://github.com/prulloac/devcontainer-features/tree/main/src/lua", "options": { "version": { "type": "string", - "default": "5.4.7" + "default": "5.4.8" }, "useApt": { "type": "boolean", diff --git a/src/lua/install.sh b/src/lua/install.sh index 8f61d96..58f7f00 100644 --- a/src/lua/install.sh +++ b/src/lua/install.sh @@ -2,7 +2,7 @@ set -e -VERSION="${VERSION:-"5.4.7"}" +VERSION="${VERSION:-"5.4.8"}" USE_APT="${USEAPT:-"false"}" @@ -15,12 +15,12 @@ if [ "${USE_APT}" = "true" ]; then else # build and install lua from source apt update -y - apt install -y curl make gcc tar + apt install -y curl make gcc tar libreadline-dev curl -L -R -O https://www.lua.org/ftp/lua-${VERSION}.tar.gz tar zxf lua-${VERSION}.tar.gz cd lua-${VERSION} - make all test - make all install + make linux-readline test + make linux-readline install fi echo 'Done!'