mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Fix problematic code to correctly represent the bad practice
@@ -3,7 +3,7 @@
|
||||
### Problematic code:
|
||||
|
||||
```sh
|
||||
if [ "$(find . | grep 'IMG[0-9]')" ]
|
||||
if [ -n "$(find . | grep 'IMG[0-9]')" ]
|
||||
then
|
||||
echo "Images found"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user