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:
|
### Problematic code:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
if [ "$(find . | grep 'IMG[0-9]')" ]
|
if [ -n "$(find . | grep 'IMG[0-9]')" ]
|
||||||
then
|
then
|
||||||
echo "Images found"
|
echo "Images found"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user