From 08e5cff9e24d21f86cbdfc503f946adff12f4c5c Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Mon, 15 Feb 2010 19:26:34 +0000 Subject: Keep sed from complaining when the directory in an include directory is empty svn path=/trunk/gentoolkit/; revision=742 --- bin/revdep-rebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/revdep-rebuild b/bin/revdep-rebuild index f797f89..1eb4393 100755 --- a/bin/revdep-rebuild +++ b/bin/revdep-rebuild @@ -669,7 +669,7 @@ parse_ld_so_conf() { local include for path in $(sed '/^#/d;s/#.*$//' < /etc/ld.so.conf); do if [[ $include = true ]]; then - for include_path in $(sed '/^#/d;s/#.*$//' /etc/${path}); do + for include_path in $(sed '/^#/d;s/#.*$//' /etc/${path} 2>/dev/null); do echo $include_path done include="" -- cgit v1.2.3