From f2fdb9a969c7caa9296ab4e3b252c883e90cace4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 30 Sep 2018 01:41:20 -0400 Subject: test: testenv: Group the list of variables in _sudo() --- test/testenv | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.2