diff --git a/SC2144.md b/SC2144.md index d48231d..17f3217 100644 --- a/SC2144.md +++ b/SC2144.md @@ -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"