diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-09-30 01:41:20 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-01 17:35:22 -0400 |
commit | f2fdb9a969c7caa9296ab4e3b252c883e90cace4 (patch) | |
tree | ec17032eae70fa3a10801cb29318c535c6cf44ab /test | |
parent | 3175d796876c476a872af3a267a49efe03f10596 (diff) |
test: testenv: Group the list of variables in _sudo()
Diffstat (limited to 'test')
-rwxr-xr-x | test/testenv | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testenv b/test/testenv index 9883e8b..a2e1699 100755 --- a/test/testenv +++ b/test/testenv @@ -62,7 +62,12 @@ # Hack to respect our variables in sudo _sudo() { - local vars=(TMPDIR PATH LIBRETOOLS_LIBDIR GNUPGHOME XDG_CACHE_HOME XDG_CONFIG_HOME _librelib_conf_sh_sysconfdir GPGKEY) + local vars=( + TMPDIR + GNUPGHOME XDG_CACHE_HOME XDG_CONFIG_HOME + PATH LIBRETOOLS_LIBDIR _librelib_conf_sh_sysconfdir + GPGKEY + ) local env=() local var for var in "${vars[@]}"; do |