Skip to content

Commit

Permalink
Merge pull request #359 from danmayer/lua_install_script_install_new_…
Browse files Browse the repository at this point in the history
…lua_rocks

Fix lua install script
  • Loading branch information
kbaum committed Nov 12, 2019
2 parents 8bc976d + cb33300 commit ab24f20
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions lua/install.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
#!/bin/bash

LUA_DIR="$HOME/lua51"
BUSTED="$LUA_DIR/bin/busted"
LUA="$LUA_DIR/bin/lua"

if [ -f "$BUSTED" ]
then
echo "$BUSTED already exists"
exit 0
if [ ! -f $LUA ]; then
echo "Installing lua"
pip install hererocks
hererocks $LUA_DIR -l5.1 -rlatest
fi

pip install hererocks
hererocks $LUA_DIR -l5.1 -rlatest
source $LUA_DIR/bin/activate
lua -v
for i in luacov busted redis-lua inspect lua-cjson; do
Expand Down

0 comments on commit ab24f20

Please sign in to comment.