summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Kelly <pioto@gentoo.org>2007-01-12 05:18:24 +0000
committerMike Kelly <pioto@gentoo.org>2007-01-12 05:18:24 +0000
commit015f437cf17004cce87af3511b7e1b02d773cd09 (patch)
tree895277df2310b3066fecfbed721e65626032158d /eclass
parentFix Manifest (diff)
downloadgentoo-2-015f437cf17004cce87af3511b7e1b02d773cd09.tar.gz
gentoo-2-015f437cf17004cce87af3511b7e1b02d773cd09.tar.bz2
gentoo-2-015f437cf17004cce87af3511b7e1b02d773cd09.zip
Fix update_vim_afterscripts. Thanks to Leonardo Boshell, Bug #156229.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/vim-plugin.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass
index 2d84d9802ce3..1470bba392e4 100644
--- a/eclass/vim-plugin.eclass
+++ b/eclass/vim-plugin.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim-plugin.eclass,v 1.18 2006/10/10 15:47:34 pioto Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim-plugin.eclass,v 1.19 2007/01/12 05:18:24 pioto Exp $
#
# This eclass simplifies installation of app-vim plugins into
# /usr/share/vim/vimfiles. This is a version-independent directory
@@ -92,7 +92,7 @@ update_vim_afterscripts() {
# This is a generated file, but might be abandoned. Check
# if there's no corresponding .d directory, or if the
# file's effectively empty
- if [[ ! -d "${f}.d" || -z "$(grep -v '^"')" ]]; then
+ if [[ ! -d "${f}.d" || -z "$(grep -v '^"' "${f}")" ]]; then
rm -f "${f}"
fi
done