1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 20:40:32 +01:00

Fix runtime dir generation.

This commit is contained in:
Bert Peters
2016-11-05 14:55:46 +01:00
parent f739d195b0
commit 68d889d2a3

View File

@@ -11,13 +11,13 @@ fi
# Some systems do not set XDG_RUNTIME_DIR, create an alternative.
if [ -z $XDG_RUNTIME_DIR ]; then
if [ -n $TMPDIR ]; then
XDG_RUNTIME_DIR = "$TMPDIR/$USERNAME/"
if [ -n "$TMPDIR" ]; then
XDG_RUNTIME_DIR="$TMPDIR/$USERNAME"
else
XDG_RUNTIME_DIR = "/tmp/$USERNAME/"
XDG_RUNTIME_DIR="/tmp/$USERNAME"
fi
chmod 700 "$XDG_RUNTIME_DIR"
mkdir -p "$XDG_RUNTIME_DIR" -m 700
export XDG_RUNTIME_DIR
fi