From ad03b8ebad43ea80492c387f5694b886df2a8f4a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 21 Jun 2017 00:48:34 -0400 Subject: test: conf.sh: don't assume conf.sh works in sh; use bash --- test/lib-conf-test.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/lib-conf-test.sh b/test/lib-conf-test.sh index e1a27e6..cf0b805 100644 --- a/test/lib-conf-test.sh +++ b/test/lib-conf-test.sh @@ -6,8 +6,7 @@ describe lib/conf.sh it_sets_makepkg_vars_in_custom_file() { unset PKGDEST touch "$tmpdir/makepkg.conf" - . $(librelib conf.sh) - MAKEPKG_CONF="$tmpdir/makepkg.conf" set_var makepkg PKGDEST /pkgdest + bash -c "$(printf '. $(librelib conf.sh); MAKEPKG_CONF=%q set_var makepkg PKGDEST /pkgdest' "$tmpdir/makepkg.conf")" . "$tmpdir/makepkg.conf" [[ $PKGDEST == /pkgdest ]] } -- cgit v1.2.2