Merge pull request #13721 from zimbatm/make-wrapper-unset

make-wrapper.sh: add an --unset argument
This commit is contained in:
Thomas Tuegel 2016-03-07 07:17:23 -06:00
commit fabbd0f0f7
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,12 @@ makeWrapper() {
echo "export $varName=$value" >> $wrapper
fi
if test "$p" = "--unset"; then
varName=${params[$((n + 1))]}
n=$((n + 1))
echo "unset $varName" >> "$wrapper"
fi
if test "$p" = "--run"; then
command=${params[$((n + 1))]}
n=$((n + 1))