git://git.exim.org
/
buildfarm-client.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adjust how to clear a shell script env variable
[buildfarm-client.git]
/
run_cron.sh
diff --git
a/run_cron.sh
b/run_cron.sh
index 717c9706975151454b941a5f7e2aa36b8a336e46..5c81a8588d48d386ec4d4a3323c5f39f320288ec 100755
(executable)
--- 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 $@