From 779394ac1f36f7e6667c4b429295bc645a8d7d7f Mon Sep 17 00:00:00 2001 From: Nathan Phillip Brink Date: Mon, 20 Sep 2010 10:20:52 -0400 Subject: [PATCH] When removing a package and grepping ofr package references, don't let grep complain if profiles/package.mask doesn't exist. --- sunrise-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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