17 lines
322 B
Bash
17 lines
322 B
Bash
|
# Downloads Lua Modules
|
||
|
|
||
|
# Variables
|
||
|
ROOT=$(dirname $0)/..
|
||
|
|
||
|
# Goes to root directory
|
||
|
cd $ROOT
|
||
|
|
||
|
# Gets modules from luarocks
|
||
|
if type luarocks > /dev/null 2>&1; then
|
||
|
luarocks install fennel --tree opt
|
||
|
luarocks install lua-dog --tree opt
|
||
|
else
|
||
|
echo "ERROR: luarocks is required; see <https://luarocks.org/>"
|
||
|
exit 1
|
||
|
fi
|