mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
avoid race condition for most filenames
@@ -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
|
||||
```
|
||||
|
Reference in New Issue
Block a user