mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 12:30:32 +01:00
Fix runtime dir generation.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user