diff --git a/Makefile b/Makefile index 2b60fd1d5..0652efe09 100644 --- a/Makefile +++ b/Makefile @@ -509,7 +509,7 @@ dpkg: ../scst_$(VERSION).orig.tar.xz ) && \ rm -f "$${output_files[@]}" && \ buildopts=(-uc -us) && \ - if dpkg-buildpackage --help 2>&1 | grep -- '-ui'; then \ + if dpkg-buildpackage --help 2>&1 | grep -q -- '-ui'; then \ buildopts+=(-ui); \ fi && \ if dpkg-buildpackage --help 2>&1 | \