From: fuzzyray Date: Mon, 15 Feb 2010 19:26:34 +0000 (-0000) Subject: Keep sed from complaining when the directory in an include directory is empty X-Git-Tag: gentoolkit-0.3.0_rc10~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=08e5cff9e24d21f86cbdfc503f946adff12f4c5c;p=gentoolkit.git Keep sed from complaining when the directory in an include directory is empty svn path=/trunk/gentoolkit/; revision=742 --- 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=""