summaryrefslogtreecommitdiff
path: root/standalone
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2018-07-10 14:15:47 -0400
committerJoey Hess <joeyh@joeyh.name>2018-07-10 14:15:47 -0400
commiteb08deefa5d7c9c7592f253600b5c78dd885da55 (patch)
tree41c43719c26f3cfe1961e32ccbd6c59d9caff4f9 /standalone
parentf991c8c526b0380367152c9ea81907b9a4033bc9 (diff)
Revert "fall back to /tmp for LOCPATH if HOME does not exist or not writable"
This reverts commit f991c8c526b0380367152c9ea81907b9a4033bc9. On second thought, this makes it unbearably slow and leaves far too much cruft behind.
Diffstat (limited to 'standalone')
-rwxr-xr-xstandalone/linux/skel/runshell7
1 files changed, 0 insertions, 7 deletions
diff --git a/standalone/linux/skel/runshell b/standalone/linux/skel/runshell
index 76b92cb9c7..f2c4f8887b 100755
--- a/standalone/linux/skel/runshell
+++ b/standalone/linux/skel/runshell
@@ -126,13 +126,6 @@ unset LD_PRELOAD
ORIG_LOCPATH="$LOCPATH"
export ORIG_LOCPATH
LOCPATH="$HOME/.cache/git-annex/locales/$(echo "$base" | tr / _ )"
-if ! mkdir -p "$LOCPATH" 2>/dev/null; then
- tlocpath=$(mktemp -d -p /tmp annexlocalesXXXXXXXXX 2>/dev/null || true)
- if [ -z "$tlocpath" ]; then
- tlocpath="/tmp/annexlocales.$$"
- fi
- LOCPATH="$tlocpath/locales/$(echo "$base" | tr / _ )"
-fi
export LOCPATH
# Clean up locale caches when their standalone bundle no longer exists.