use the luarocks path in cron scripts

This commit is contained in:
Enno Rehling 2020-05-01 17:50:58 +02:00
parent 9160791ce1
commit d4c299eaf4
2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@
[ "$PREVIEW" != "yes" ] && exit [ "$PREVIEW" != "yes" ] && exit
[ -z "${ERESSEA}" ] && ERESSEA="$HOME/eressea" [ -z "${ERESSEA}" ] && ERESSEA="$HOME/eressea"
eval $(luarocks path)
branch="develop" branch="develop"
if [ -e "${ERESSEA}/build/.preview" ]; then if [ -e "${ERESSEA}/build/.preview" ]; then
branch=$(cat "${ERESSEA}/build/.preview") branch=$(cat "${ERESSEA}/build/.preview")

View File

@ -1,4 +1,6 @@
#!/bin/bash #!/bin/bash
eval $(luarocks path)
GAME=$1 GAME=$1
( (
[ "$ENABLED" != "yes" ] && exit [ "$ENABLED" != "yes" ] && exit