diff --git a/process/cron/preview.cron b/process/cron/preview.cron index eb39fd8f8..63fe2ca76 100755 --- a/process/cron/preview.cron +++ b/process/cron/preview.cron @@ -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" diff --git a/s/coverity b/s/coverity index 3d218adb7..01bb2a042 100755 --- a/s/coverity +++ b/s/coverity @@ -6,7 +6,7 @@ cd Debug make clean ../../coverity/bin/cov-build --dir cov-int make eressea tar czf eressea.tgz cov-int -curl --form token=IISXKH3A1ngZGfFmBz_aSA \ +curl -k --form token=IISXKH3A1ngZGfFmBz_aSA \ --form email=enno.rehling@gmail.com \ --form file=@eressea.tgz \ --form version="$VERSION" \