mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2144 (markdown)
@@ -55,7 +55,7 @@ You may still want to consider making this assumption explicit and failing fast
|
||||
|
||||
```
|
||||
files=( dir/file* )
|
||||
[ "${#files[@]}" -ge 2 ] || exit 1
|
||||
[ "${#files[@]}" -ge 2 ] && exit 1
|
||||
if [ -e "${files[0]}" ]
|
||||
then
|
||||
echo "The file exists"
|
||||
|
Reference in New Issue
Block a user