summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-12-10 19:22:38 +0000
committerMike Frysinger <vapier@gentoo.org>2011-12-10 19:22:38 +0000
commite52a24c159c8728e85d095779395bb761d791467 (patch)
tree2be4678949bb57d91a40fd38748d7f34763bc9f5 /eclass/myspell.eclass
parentChange install location from /usr/lib to /usr/share. Use our own wrapper scri... (diff)
downloadgentoo-2-e52a24c159c8728e85d095779395bb761d791467.tar.gz
gentoo-2-e52a24c159c8728e85d095779395bb761d791467.tar.bz2
gentoo-2-e52a24c159c8728e85d095779395bb761d791467.zip
avoid `ls` when a shell glob works (to avoid possible `ls` issues)
Diffstat (limited to 'eclass/myspell.eclass')
-rw-r--r--eclass/myspell.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/myspell.eclass b/eclass/myspell.eclass
index 09463a0f430f..680609dc2eba 100644
--- a/eclass/myspell.eclass
+++ b/eclass/myspell.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/myspell.eclass,v 1.6 2009/02/09 08:21:00 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/myspell.eclass,v 1.7 2011/12/10 19:22:38 vapier Exp $
# Author: Kevin F. Quinn <kevquinn@gentoo.org>
# Packages: app-dicts/myspell-*
@@ -146,8 +146,8 @@ myspell_src_install() {
done
doins ${dictlst} || die "Failed to install ${dictlst}"
# Install any txt files (usually README.txt) as documentation
- for filen in $(ls *.txt 2> /dev/null); do
- dodoc ${filen}
+ for filen in *.txt; do
+ [[ -s ${filen} ]] && dodoc ${filen}
done
}