Merge pull request #504 from Telling/mvim-fix

fix expansion issue in mvim
This commit is contained in:
Kazuki Sakamoto
2017-05-07 21:27:03 -07:00
committed by GitHub
+6 -6
View File
@@ -11,22 +11,22 @@
#
# Find Vim executable
if [ -L $0 ]; then
if [ -L "$0" ]; then
# readlink -f
curdir=`pwd -P`
self_path=$0
cd `dirname $self_path`
while [ -L $self_path ]; do
cd "`dirname $self_path`"
while [ -L "$self_path" ]; do
self_path=`readlink $self_path`
cd `dirname $self_path`
cd "`dirname $self_path`"
self_path=`basename $self_path`
done
binary="`pwd -P`/../MacOS/Vim"
cd $curdir
cd "$curdir"
else
binary="`dirname "$0"`/../MacOS/Vim"
fi
if ! [ -x $binary ]; then
if ! [ -x "$binary" ]; then
echo "Sorry, cannot find Vim executable."
exit 1
fi