mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2143 (markdown)
@@ -1,4 +1,4 @@
|
|||||||
## Instead of [ -n $(foo | grep bar) ], use foo | grep -q bar .
|
## Use grep -q instead of comparing output with [ -n .. ].
|
||||||
### Problematic code:
|
### Problematic code:
|
||||||
|
|
||||||
if [ "$(find . | grep 'IMG[0-9]')" ]
|
if [ "$(find . | grep 'IMG[0-9]')" ]
|
||||||
|
Reference in New Issue
Block a user