X-Git-Url: https://git.exim.org/buildfarm-client.git/blobdiff_plain/a475ae642a475267249caa9d561380e2baccf5d9..HEAD:/run_cron.sh diff --git a/run_cron.sh b/run_cron.sh index 8a6f604..9306638 100755 --- a/run_cron.sh +++ b/run_cron.sh @@ -1,5 +1,17 @@ #!/bin/sh +new=${0%.sh} + +if test -t; then + cat <<___ >&2 +`basename $0`: Please use $new (note the missing extension!) instead. +This ($0) script will be removed without any further notice. +___ + exit 1 +fi + +exec $new "$@" + if which dirname >/dev/null; then BFDIR=`dirname $0` elif [ "x${BFDIR}" = "x" ]; then @@ -10,7 +22,15 @@ fi cd $BFDIR # Update the build client if new version available if which git >/dev/null; then - git pull + git pull >/dev/null +fi + +# Sanitize or set up environment +# 1) Remove because spec.txt generation fails if set +if env | grep -q '/bin/bash'; then + export -n PERL_UNICODE +else + unset PERL_UNICODE fi ./run_branches.pl $@