From 5641ec156a90d5ca69907bafcd23c6cef2b03906 Mon Sep 17 00:00:00 2001 From: Todd Lyons Date: Wed, 22 Oct 2014 11:34:07 -0700 Subject: [PATCH] Adjust how to clear a shell script env variable --- run_cron.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 $@ -- 2.30.2