Skip to content
Browse files

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

…cuting the installer script
  • Loading branch information...
1 parent 201b430 commit 70b57693ae5b755230e4157928c851969ee839a9 robgleeson committed Jun 28, 2010
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.."

0 comments on commit 70b5769

Please sign in to comment.
Something went wrong with that request. Please try again.