Create a trusted-config file for use in test
[buildfarm-client.git] / run_cron.sh
index 8a6f604731b91aec63a477a45375d033a26c8f56..5c81a8588d48d386ec4d4a3323c5f39f320288ec 100755 (executable)
@@ -10,7 +10,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 $@