mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Merge pull request #504 from Telling/mvim-fix
fix expansion issue in mvim
This commit is contained in:
+6
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user