From 6e279af74b6178f0c0a56e9a5b56153c63631388 Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Fri, 12 Jan 2007 05:18:24 +0000 Subject: [PATCH] Fix update_vim_afterscripts. Thanks to Leonardo Boshell, Bug #156229. --- eclass/vim-plugin.eclass | 4 ++-- 1 file 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 -- 2.26.2