We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0f7e1f + d62b707 commit 03fa850Copy full SHA for 03fa850
src/MacVim/mvim
@@ -11,22 +11,22 @@
11
#
12
13
# Find Vim executable
14
-if [ -L $0 ]; then
+if [ -L "$0" ]; then
15
# readlink -f
16
curdir=`pwd -P`
17
self_path=$0
18
- cd `dirname $self_path`
19
- while [ -L $self_path ]; do
+ cd "`dirname $self_path`"
+ while [ -L "$self_path" ]; do
20
self_path=`readlink $self_path`
21
22
self_path=`basename $self_path`
23
done
24
binary="`pwd -P`/../MacOS/Vim"
25
- cd $curdir
+ cd "$curdir"
26
else
27
binary="`dirname "$0"`/../MacOS/Vim"
28
fi
29
-if ! [ -x $binary ]; then
+if ! [ -x "$binary" ]; then
30
echo "Sorry, cannot find Vim executable."
31
exit 1
32
0 commit comments