Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove an older version of vim-markdown-preview if it exists when exe…

…cuting the installer script
  • Loading branch information...
commit 70b57693ae5b755230e4157928c851969ee839a9 1 parent 201b430
@strcmp strcmp authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 install.sh
View
10 install.sh
@@ -1,6 +1,12 @@
#!/bin/sh
-echo "Copying plugin/* to $HOME/.vim/plugin .."
+if [ -e $HOME/.vim/plugin/MKD.vim ]; then
+ echo "Removing old version of vim-markdown-preview ..."
+ rm $HOME/.vim/plugin/MKD.vim
+ echo "DONE.."
+fi
+
+echo "Copying plugin/* to $HOME/.vim/plugin ... "
cp -R plugin/* $HOME/.vim/plugin
-echo "DONE."
+echo "DONE.."
Please sign in to comment.
Something went wrong with that request. Please try again.