Browse files

deal with $0 having spaces in it

  • Loading branch information...
1 parent 05dcb95 commit f84b8615e5d22d511712496449b644b0edde5179 @joeyh committed Mar 20, 2013
View
2 standalone/linux/git-annex
@@ -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
View
2 standalone/linux/git-annex-webapp
@@ -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
View
2 standalone/linux/runshell
@@ -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
View
2 standalone/osx/git-annex.app/Contents/MacOS/git-annex
@@ -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
View
2 standalone/osx/git-annex.app/Contents/MacOS/git-annex-webapp
@@ -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
View
2 standalone/osx/git-annex.app/Contents/MacOS/runshell
@@ -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

0 comments on commit f84b861

Please sign in to comment.