Open aureliojargas opened 6 years ago
Since grep returns with exit code 0 when the search string is found, it can be used directly on the if.
grep
if
Also, using the -s option there's no need to check if the file exists.
-s
Thanks for the suggestion. This line is also modified in #90 so I'd suggest we consider making this change after that has been merged.
Since
grep
returns with exit code 0 when the search string is found, it can be used directly on theif
.Also, using the
-s
option there's no need to check if the file exists.