Skip to content

Commit

Permalink
* fuzz/*: Use grep >/dev/null instead of grep -q
Browse files Browse the repository at this point in the history
  • Loading branch information
rockdaboot committed Feb 17, 2023
1 parent 8247a34 commit 24e8763
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fuzz/get_all_corpora
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh -eu

if ! grep -q FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile; then
if ! grep FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile >/dev/null; then
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
echo "Please built regarding README.md and try again."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion fuzz/get_ossfuzz_corpora
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if test -z "$1"; then
exit 1
fi

if ! grep -q FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile; then
if ! grep FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile >/dev/null; then
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
echo "Please built regarding README.md and try again."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion fuzz/run-afl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with GNU Wget. If not, see <https://www.gnu.org/licenses/>.

if ! grep -q '^CC=.afl-clang-fast' ../config.log; then
if ! grep '^CC=.afl-clang-fast' ../config.log >/dev/null; then
echo "compile first library as:"
echo "CC=afl-clang-fast ./configure"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion fuzz/run-clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if test -z "$1"; then
exit 1
fi

if ! grep -q FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile; then
if ! grep FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION Makefile >/dev/null; then
echo "The fuzzers haven't been built for fuzzing (maybe for regression testing !?)"
echo "Please built regarding README.md and try again."
exit 1
Expand Down

0 comments on commit 24e8763

Please sign in to comment.