From c087904e6564cb3320c8ee7c7829783fe08cf165 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 24 Aug 2021 03:06:29 +0000 Subject: [PATCH] avoid race condition for most filenames --- SC2045.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2045.md b/SC2045.md index aafb233..c184c9f 100644 --- a/SC2045.md +++ b/SC2045.md @@ -14,7 +14,7 @@ done ```sh for f in *.wav do - [[ -e "$f" ]] || break # handle the case of no *.wav files + [[ "$f" == '*.wav' && -e "$f" ]] || break # handle the case of no *.wav files echo "$f" done ```