aboutsummaryrefslogtreecommitdiffstats
path: root/t/lib-parallel-checkout.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-04-05 17:08:59 -0700
committerJunio C Hamano <gitster@pobox.com>2024-04-05 22:50:10 -0700
commit341aad8d41ca8321d826e1ce012e4faf1a8be2a4 (patch)
tree03549339b89260e4d5c3650ac78da77d63f301b8 /t/lib-parallel-checkout.sh
parentbe34b51049d1628d1ba4f17e3c087fd01f15f988 (diff)
downloadgit-341aad8d41ca8321d826e1ce012e4faf1a8be2a4.tar.gz
t: local VAR="VAL" (quote positional parameters)
Future-proof test scripts that do local VAR=VAL without quoting VAL (which is OK in POSIX but broken in some shells) that is a positional parameter, e.g. $4. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-parallel-checkout.sh')
-rw-r--r--t/lib-parallel-checkout.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/lib-parallel-checkout.sh b/t/lib-parallel-checkout.sh
index acaee9cbb6..8324d6c96d 100644
--- a/t/lib-parallel-checkout.sh
+++ b/t/lib-parallel-checkout.sh
@@ -20,7 +20,7 @@ test_checkout_workers () {
BUG "too few arguments to test_checkout_workers"
fi &&
- local expected_workers=$1 &&
+ local expected_workers="$1" &&
shift &&
local trace_file=trace-test-checkout-workers &&