From a1321e82520651a1282b621cf9148a4611247238 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 20 Mar 2013 14:11:36 -0400 Subject: deal with $0 having spaces in it --- standalone/linux/git-annex | 2 +- standalone/linux/git-annex-webapp | 2 +- standalone/linux/runshell | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'standalone/linux') diff --git a/standalone/linux/git-annex b/standalone/linux/git-annex index cda5b569b..57eb343f9 100755 --- a/standalone/linux/git-annex +++ b/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 diff --git a/standalone/linux/git-annex-webapp b/standalone/linux/git-annex-webapp index 61a9bbbeb..40fc6399d 100755 --- a/standalone/linux/git-annex-webapp +++ b/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 diff --git a/standalone/linux/runshell b/standalone/linux/runshell index a1c93792d..a36e49083 100755 --- a/standalone/linux/runshell +++ b/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 -- cgit v1.2.3