- Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path_lua
More file actions
Latest commit
executable file
·18 lines (17 loc) · 424 Bytes
/
Copy path_lua
File metadata and controls
executable file
·18 lines (17 loc) · 424 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
# if lua is not found, download and install.
LUA=$(which lua)
if [ "$LUA"="" ];then
echo"Lua is not found. Installing ....";
(
mkdir -p /tmp/__lua
cd /tmp/__lua
wget https://www.lua.org/ftp/lua-5.3.5.tar.gz
tar xvf lua-5.3.5.tar.gz
./configure --prefix=$HOME/.local
make -j$(nproc)
make install
)
else
echo"LUA is $LUA"
fi