From: Peng Li Date: Sat, 18 Feb 2017 09:53:03 +0000 (+0800) Subject: Vim - fix bug of install file X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=1c1836a96464e92e5b70924a116a949573294310;hp=08456d66bf9056ea3debfe02bf78d0f354c0961d;p=dotfiles.git Vim - fix bug of install file --- 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'