Permalink
Browse files

determine script_dir more reliable

  • Loading branch information...
1 parent 4b066b4 commit 4117bf8e75fa431fea0fb70174c154e8b4385f33 @gogolok gogolok committed Nov 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 install.sh
View
@@ -1,5 +1,5 @@
#!/bin/sh
-script_dir=$(pwd)
+script_dir="$( cd "$( dirname "$0" )" && pwd )"
echo "Saving the old .vim .vimrc .gvimrc with .old addition...Done"
for i in ~/.vim ~/.vimrc ~/.gvimrc; do [ -e $i ] && mv $i $i.old; done

0 comments on commit 4117bf8

Please sign in to comment.