deal with $0 having spaces in it
authorJoey Hess <joey@kitenet.net>
Wed, 20 Mar 2013 18:11:36 +0000 (14:11 -0400)
committerJoey Hess <joey@kitenet.net>
Wed, 20 Mar 2013 18:11:36 +0000 (14:11 -0400)
standalone/linux/git-annex
standalone/linux/git-annex-webapp
standalone/linux/runshell
standalone/osx/git-annex.app/Contents/MacOS/git-annex
standalone/osx/git-annex.app/Contents/MacOS/git-annex-webapp
standalone/osx/git-annex.app/Contents/MacOS/runshell

index cda5b569be165b87c3fc3c7166dd646c25efa7e5..57eb343f957cee77e95c7e58345d7c9e02e4b2b5 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-base="$(dirname $0)"
+base="$(dirname "$0")"
 if [ ! -d "$base" ]; then
        echo "** cannot find base directory (I seem to be $0)" >&2
        exit 1
index 61a9bbbebc2a3f45ffe71731157e7d864b3c66d5..40fc6399d198fa1bcdafe477dcd08918ca9aba37 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-base="$(dirname $0)"
+base="$(dirname "$0")"
 if [ ! -d "$base" ]; then
        echo "** cannot find base directory (I seem to be $0)" >&2
        exit 1
index a1c93792d257441dc9c4bf27106fc1e0d316b5ea..a36e490839079d54bd09c747261ef151492f9cc4 100755 (executable)
@@ -4,7 +4,7 @@
 
 set -e
 
-base="$(dirname $0)"
+base="$(dirname "$0")"
 
 if [ ! -d "$base" ]; then
        echo "** cannot find base directory (I seem to be $0)" >&2
index f6b9d9c789d23bc13c997c8589ac89a213fcd922..5c63d15c94f1f8d59bd6453da6e96aa5986c6407 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-base="$(dirname $0)"
+base="$(dirname "$0")"
 if [ ! -d "$base" ]; then
        echo "** cannot find base directory (I seem to be $0)" >&2
        exit 1
index b221db32aa753bd69c5f03b778c2c4a1bb471746..73319d324e9318b414c44c4f119f849cfba7a3ff 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-base="$(dirname $0)"
+base="$(dirname "$0")"
 if [ ! -d "$base" ]; then
        echo "** cannot find base directory (I seem to be $0)" >&2
        exit 1
index 23f9ff253a685c047c0e53da5ee5f2013fb4f585..9f1457e250a1757d9ba16f9d662b93ea142f5507 100755 (executable)
@@ -4,7 +4,7 @@
 
 set -e
 
-base="$(dirname $0)"
+base="$(dirname "$0")"
 
 if [ ! -d "$base" ]; then
        echo "** cannot find base directory (I seem to be $0)" >&2