summaryrefslogtreecommitdiff
path: root/standalone
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-19 17:31:08 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-19 17:31:08 -0400
commit7660d466718e064171973283cd9a48e72c4ac395 (patch)
tree739c1e48f22a66386e0d9a7527566882b9c7f723 /standalone
parent490211a7f9cf9080bc913a481d8e11865931e46b (diff)
shorter directory to external ssh socket
Before it was too long to be used.
Diffstat (limited to 'standalone')
-rwxr-xr-xstandalone/android/runshell6
1 files changed, 4 insertions, 2 deletions
diff --git a/standalone/android/runshell b/standalone/android/runshell
index 1b0b3e4f6..20738ddb0 100755
--- a/standalone/android/runshell
+++ b/standalone/android/runshell
@@ -4,7 +4,8 @@
set -e
-base="$(dirname $0)"/git-annex-bundle
+here="$(dirname $0)"
+base="$here/git-annex-bundle"
if [ ! -d "$base" ]; then
echo "** cannot find base directory (I seem to be $0)" >&2
@@ -54,7 +55,8 @@ GIT_ANNEX_STANDLONE_ENV="PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR"
export GIT_ANNEX_STANDLONE_ENV
# This is a temporary directory on a non-crippled filesystem.
-GIT_ANNEX_TMP_DIR=$base/tmp
+# This needs to be as short a path as possible.
+GIT_ANNEX_TMP_DIR=$here/tmp
export GIT_ANNEX_TMP_DIR
mkdir -p "$GIT_ANNEX_TMP_DIR"