send-pull-request: unset $TO and $CC from environment

Darren Hart and I discovered that when $CC is set (which
our meta-toolchain environment script sets up), the value
leaks into the use of this script. Unsetting $TO as well
just to be thorough.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
This commit is contained in:
Scott Garman 2011-01-21 16:15:33 -08:00 committed by Saul Wold
parent aee1d50802
commit 75748b6f09
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@ if [ -z "$PULL_MTA" ]; then
PULL_MTA="sendmail"
fi
# Prevent environment leakage to these vars.
unset TO
unset CC
usage()
{
cat <<EOM