Fix sudo zypper

`PATH` is a forbidden variable that is not preserved by -E anyway.
This commit is contained in:
Andrea Cardaci 2020-06-10 22:54:20 +02:00
parent 9cd6849b8e
commit b92d9e0ec2

View File

@ -16,6 +16,5 @@ functions:
- code: | - code: |
TF=$(mktemp -d) TF=$(mktemp -d)
cp /bin/sh $TF/zypper-x cp /bin/sh $TF/zypper-x
export PATH=$TF:$PATH sudo PATH=$TF:$PATH zypper x
sudo -E zypper x
--- ---