Keep sed from complaining when the directory in an include directory is empty
authorfuzzyray <fuzzyray@gentoo.org>
Mon, 15 Feb 2010 19:26:34 +0000 (19:26 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Mon, 15 Feb 2010 19:26:34 +0000 (19:26 -0000)
svn path=/trunk/gentoolkit/; revision=742

bin/revdep-rebuild

index f797f89e47616e6416d260a91cbcb43816ffa59e..1eb4393c7ee247cfd606bcbdb3debb71357863a2 100755 (executable)
@@ -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=""