summaryrefslogtreecommitdiff
path: root/.config/login.d/90_dot-runtime.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-10-04 15:08:06 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-10-04 15:08:06 -0400
commit9685060a9222ae5bdc242c6366f4a074e5ad8589 (patch)
tree4fde5c1088d69d177852e9964acb38d546144a17 /.config/login.d/90_dot-runtime.sh
parent4b151e74462b93b68ebbf90502de86b84917bd7c (diff)
parent795875623f9a9cd35374d2f0531182a267e81588 (diff)
Merge branch 'master' into build64-par/master
# Conflicts: # .config/emacs/init.el
Diffstat (limited to '.config/login.d/90_dot-runtime.sh')
-rw-r--r--.config/login.d/90_dot-runtime.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/login.d/90_dot-runtime.sh b/.config/login.d/90_dot-runtime.sh
index d06568f..cb0b7f2 100644
--- a/.config/login.d/90_dot-runtime.sh
+++ b/.config/login.d/90_dot-runtime.sh
@@ -1,4 +1,8 @@
# This is really only needed for ssh ControlPath; as I don't have a
# way to communicate XDG_RUNTIME_DIR to it otherwise.
mkdir -p -- ~/.runtime
-ln -sfT -- "$XDG_RUNTIME_DIR" ~/.runtime/"$HOSTNAME"
+if [ -n "$XDG_RUNTIME_DIR" ]; then
+ ln -sfT -- "$XDG_RUNTIME_DIR" ~/.runtime/"$HOSTNAME"
+else
+ ln -sfT -- /tmp ~/.runtime/"$HOSTNAME"
+fi