From 40d1c87bea38b3937fd4837cbb93fed7be4ffd1d Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Fri, 26 Nov 2021 09:36:42 +1300 Subject: lib/tests: Quote variable references --- lib/tests/sources.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/tests/sources.sh') diff --git a/lib/tests/sources.sh b/lib/tests/sources.sh index e148d023c8546..68d21d2aa6d3c 100755 --- a/lib/tests/sources.sh +++ b/lib/tests/sources.sh @@ -11,7 +11,7 @@ die() { if test -n "${TEST_LIB:-}"; then NIX_PATH=nixpkgs="$(dirname "$TEST_LIB")" else - NIX_PATH=nixpkgs="$(cd $(dirname ${BASH_SOURCE[0]})/../..; pwd)" + NIX_PATH=nixpkgs="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.."; pwd)" fi export NIX_PATH @@ -20,7 +20,7 @@ clean_up() { rm -rf "$work" } trap clean_up EXIT -cd $work +cd "$work" touch {README.md,module.o,foo.bar} @@ -30,7 +30,7 @@ touch {README.md,module.o,foo.bar} dir="$(nix eval --impure --raw --expr '(with import ; "${ cleanSource ./. }")')" -(cd $dir; find) | sort -f | diff -U10 - <(cat <