mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 07:14:52 +00:00
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
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user