From 1c1836a96464e92e5b70924a116a949573294310 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sat, 18 Feb 2017 17:53:03 +0800 Subject: [PATCH] Vim - fix bug of install file --- vim/install.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/install.pl b/vim/install.pl index 7bc9e46..16e4a12 100755 --- a/vim/install.pl +++ b/vim/install.pl @@ -19,7 +19,7 @@ print `ln -s $vimDir $home/.vim`; print `ln -s $vimrc $home/.vimrc`; if ($? == 0) { - print "Link files Done." unless $?; + print "Link files Done.\n"; } else { die; } @@ -31,12 +31,12 @@ my $vundleDir = $vimDir . "/bundle/Vundle.vim"; if (not -e "$vundleDir"){ die "Vundle directory not exists, abort.\n"; } elsif (-s "$vundleDir") { - print "Vundle exists and not empty.\n"; -} else { print " clone submodules \n"; chdir $vundleDir; ! system "git submodule init" or die $!; ! system "git submodule update" or die $!; +} else { + print "Vundle exists and not empty.\n"; } print <<'END' -- 2.11.0