test_git.sh: add quotes to to prevent globbing and word splitting

Fixes SC2086. Part of #891.
This commit is contained in:
Raúl Benencia 2024-06-28 11:25:25 -07:00
parent 6716848f4b
commit 4f0dc5679b
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,7 @@ function list_tests() {
declare -F \
| cut -f3 -d' ' \
| grep "^git::" \
| while read -r X; do declare -F $X; done \
| while read -r X; do declare -F "$X"; done \
| sort -n -k2 \
| cut -f1 -d' ' \
| sed 's/^git:://'