summaryrefslogtreecommitdiff
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
commit6e279af74b6178f0c0a56e9a5b56153c63631388 (patch)
treea2653332f46bcec64aa39a95bcb0b4eb68c2dd1f /eclass/vim-plugin.eclass
parentFix Manifest (diff)
downloadhistorical-6e279af74b6178f0c0a56e9a5b56153c63631388.tar.gz
historical-6e279af74b6178f0c0a56e9a5b56153c63631388.tar.bz2
historical-6e279af74b6178f0c0a56e9a5b56153c63631388.zip
Fix update_vim_afterscripts. Thanks to Leonardo Boshell, Bug #156229.
Diffstat (limited to 'eclass/vim-plugin.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