summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-07-03 16:29:17 +0100
committerJoe Carstairs <me@joeac.net>2026-07-03 16:29:17 +0100
commited6a6e5a34a168aee580db6dc94400349645f270 (patch)
treec2303d16b2fd37debfc9a0ee6d4f15f8e0157930
parent36ccd48cfc77046b97a89aa9abbc81821e609309 (diff)
update.sh exports XDG_RUNTIME_DIR
-rw-r--r--update.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/update.sh b/update.sh
index 8b553a4..fe9da63 100644
--- a/update.sh
+++ b/update.sh
@@ -1,6 +1,11 @@
#!/bin/sh
+if [ -z "${XDG_RUNTIME_DIR}" ]
+then
+ export XDG_RUNTIME_DIR=/tmp/xdg/$(id -u joeac.net)-xdg-runtime-dir
+fi
+
cd /home/joeac.net/joeac.net \
&& sudo -u joeac.net git pull \
&& sudo -u joeac.net make \
- && sudo -u joeac.net XDG_RUNTIME_DIR=/tmp/xdg/$(id -u joeac.net)-xdg-runtime-dir make reinstall
+ && sudo -u joeac.net make reinstall