From 4860ccd61e13e405ac2932b2231e468cd5ce7c3c Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Mon, 8 Jul 2024 14:31:58 +0300 Subject: [PATCH] test.sh: `find` call: quote `$1` --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index 8325956..7432c2b 100644 --- a/test.sh +++ b/test.sh @@ -24,7 +24,7 @@ corrupt() { } iterate_on_test_files() { - find $1 -maxdepth 1 -type f -name 'test.*' | while IFS= read -r file; do + find "$1" -maxdepth 1 -type f -name 'test.*' | while IFS= read -r file; do basename="$(basename "$file")" corrupt "$file" "./corrupted/$basename" if [ "$?" -ne "0" ]; then