Merge pull request #13721 from zimbatm/make-wrapper-unset
make-wrapper.sh: add an --unset argument
This commit is contained in:
commit
fabbd0f0f7
|
@ -19,6 +19,12 @@ makeWrapper() {
|
||||||
echo "export $varName=$value" >> $wrapper
|
echo "export $varName=$value" >> $wrapper
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$p" = "--unset"; then
|
||||||
|
varName=${params[$((n + 1))]}
|
||||||
|
n=$((n + 1))
|
||||||
|
echo "unset $varName" >> "$wrapper"
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$p" = "--run"; then
|
if test "$p" = "--run"; then
|
||||||
command=${params[$((n + 1))]}
|
command=${params[$((n + 1))]}
|
||||||
n=$((n + 1))
|
n=$((n + 1))
|
||||||
|
|
Loading…
Reference in New Issue