Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lua/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 4 additions & 4 deletions src/lua/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

VERSION="${VERSION:-"5.4.7"}"
VERSION="${VERSION:-"5.4.8"}"
USE_APT="${USEAPT:-"false"}"


Expand All @@ -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!'