Revert ls change (#2315)

echo does not split the words on newlines.
This commit is contained in:
Andrew Gaul 2023-09-15 21:48:04 +09:00 committed by GitHub
parent 01189e99fc
commit 99d3e68d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1848,8 +1848,8 @@ function test_concurrent_directory_updates {
for _ in $(seq 10); do
for i in $(seq 5); do
local file
# shellcheck disable=SC2046
file=$(echo [1-5] | "${SED_BIN}" -n "$((RANDOM % 5 + 1))p")
# shellcheck disable=SC2012,SC2046
file=$(ls $(seq 5) | "${SED_BIN}" -n "$((RANDOM % 5 + 1))p")
cat "${file}" >/dev/null || true
rm -f "${file}"
echo "foo" > "${file}" || true