forked from github/server
preview gets games as arguments, game 4 is over
This commit is contained in:
parent
8c0fc4bd91
commit
5cde26e25e
|
@ -1,17 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
(
|
(
|
||||||
[ "$PREVIEW" != "yes" ] && exit
|
[ "$PREVIEW" != "yes" ] && exit
|
||||||
[ -z ${ERESSEA} ] && ERESSEA=$HOME/eressea
|
[ -z "${ERESSEA}" ] && ERESSEA="$HOME/eressea"
|
||||||
|
|
||||||
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")
|
||||||
fi
|
fi
|
||||||
SRC=${ERESSEA}/git
|
SRC="${ERESSEA}/git"
|
||||||
${SRC}/s/preview build ${branch} || exit $?
|
"${SRC}/s/preview" build "$branch" || exit $?
|
||||||
for game in 2 3 4 ; do
|
for game in "$@" ; do
|
||||||
${SRC}/s/preview -g ${game} run && \
|
"${SRC}/s/preview" -g "$game" run && \
|
||||||
${SRC}/s/preview -g ${game} send
|
"${SRC}/s/preview" -g "$game" send
|
||||||
done
|
done
|
||||||
) | tee -a $HOME/log/preview.cron.log
|
) | tee -a "$HOME/log/preview.cron.log"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue