diff --git a/sunrise-commit b/sunrise-commit index 53bfec6..ca6c136 100755 --- a/sunrise-commit +++ b/sunrise-commit @@ -465,7 +465,7 @@ main() { say "${GREEN}Grepping for package references...${RESET}" # -n is for line numbers, -C would be non-POSIX - if grep -n "${regex}" ${SC_ROOT}*/*/*.ebuild ${SC_ROOT}*/*/metadata.xml ${SC_ROOT}profiles/package.mask; then + if grep -n "${regex}" ${SC_ROOT}*/*/*.ebuild ${SC_ROOT}*/*/metadata.xml ${SC_ROOT}profiles/package.mask 2>/dev/null; then echo [ -n "${force}" ] || die 'Please remove the removed package references or use --force.' else