When removing a package and grepping ofr package references, don't let grep complain if profiles/package.mask doesn't exist.
This commit is contained in:
parent
0d1ac07ef7
commit
779394ac1f
@ -465,7 +465,7 @@ main() {
|
|||||||
|
|
||||||
say "${GREEN}Grepping for package references...${RESET}"
|
say "${GREEN}Grepping for package references...${RESET}"
|
||||||
# -n is for line numbers, -C would be non-POSIX
|
# -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
|
echo
|
||||||
[ -n "${force}" ] || die 'Please remove the removed package references or use --force.'
|
[ -n "${force}" ] || die 'Please remove the removed package references or use --force.'
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user