From: Todd Lyons Date: Wed, 22 Oct 2014 18:34:07 +0000 (-0700) Subject: Adjust how to clear a shell script env variable X-Git-Url: https://git.exim.org/buildfarm-client.git/commitdiff_plain/5641ec156a90d5ca69907bafcd23c6cef2b03906?ds=sidebyside Adjust how to clear a shell script env variable --- diff --git a/run_cron.sh b/run_cron.sh index 717c970..5c81a85 100755 --- a/run_cron.sh +++ b/run_cron.sh @@ -15,6 +15,10 @@ fi # Sanitize or set up environment # 1) Remove because spec.txt generation fails if set -export -n PERL_UNICODE +if env | grep -q '/bin/bash'; then + export -n PERL_UNICODE +else + unset PERL_UNICODE +fi ./run_branches.pl $@