forked from github/server
preview gets games as arguments, game 4 is over
This commit is contained in:
parent
97afaa29c3
commit
90cd77c586
|
@ -1,17 +1,17 @@
|
|||
#!/bin/bash
|
||||
(
|
||||
[ "$PREVIEW" != "yes" ] && exit
|
||||
[ -z ${ERESSEA} ] && ERESSEA=$HOME/eressea
|
||||
[ -z "${ERESSEA}" ] && ERESSEA="$HOME/eressea"
|
||||
|
||||
branch="develop"
|
||||
if [ -e ${ERESSEA}/build/.preview ]; then
|
||||
branch=`cat ${ERESSEA}/build/.preview`
|
||||
if [ -e "${ERESSEA}/build/.preview" ]; then
|
||||
branch=$(cat "${ERESSEA}/build/.preview")
|
||||
fi
|
||||
SRC=${ERESSEA}/git
|
||||
${SRC}/s/preview build ${branch} || exit $?
|
||||
for game in 2 3 4 ; do
|
||||
${SRC}/s/preview -g ${game} run && \
|
||||
${SRC}/s/preview -g ${game} send
|
||||
SRC="${ERESSEA}/git"
|
||||
"${SRC}/s/preview" build "$branch" || exit $?
|
||||
for game in "$@" ; do
|
||||
"${SRC}/s/preview" -g "$game" run && \
|
||||
"${SRC}/s/preview" -g "$game" send
|
||||
done
|
||||
) | tee -a $HOME/log/preview.cron.log
|
||||
) | tee -a "$HOME/log/preview.cron.log"
|
||||
|
||||
|
|
Loading…
Reference in New Issue