diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2010-02-15 19:26:34 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2010-02-15 19:26:34 +0000 |
| commit | 08e5cff9e24d21f86cbdfc503f946adff12f4c5c (patch) | |
| tree | 20a5cc777cdf2567287dfb8bccd2825654b228b5 | |
| parent | a47dbfef50e10ad8233b47862391401964b4edb6 (diff) | |
| download | gentoolkit-08e5cff9e24d21f86cbdfc503f946adff12f4c5c.tar.gz | |
Keep sed from complaining when the directory in an include directory is empty
svn path=/trunk/gentoolkit/; revision=742
| -rwxr-xr-x | bin/revdep-rebuild | 2 |
1 files changed, 1 insertions, 1 deletions
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="" |
