summaryrefslogtreecommitdiffstats
path: root/scripts/afm-util
diff options
context:
space:
mode:
authorManuel Bachmann <mbc@iot.bzh>2016-04-07 16:36:18 +0000
committerManuel Bachmann <mbc@iot.bzh>2016-04-07 16:36:18 +0000
commit2ddd0a58dae834f173277e51488f6ba30f1cad6a (patch)
tree5e7588c9469f4927c99461e645f0eb35259d9b9a /scripts/afm-util
parent26aaf29a3694750834b9eefb6b6e4553bc5ea83f (diff)
afm-util: fix incorrect DBUS_SESSION_BUS_ADDRESS syntax
The previous ":=" syntax would not work with "/bin/sh" or "/bin/bash". Make sure we export it, too. Signed-off-by: Manuel Bachmann <mbc@iot.bzh>
Diffstat (limited to 'scripts/afm-util')
-rwxr-xr-xscripts/afm-util3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/afm-util b/scripts/afm-util
index cc7ab55..60434a7 100755
--- a/scripts/afm-util
+++ b/scripts/afm-util
@@ -1,8 +1,9 @@
#!/bin/sh
if [ "x" = "x${DBUS_SESSION_BUS_ADDRESS}" ]; then
- DBUS_SESSION_BUS_ADDRESS:=unix:path=/run/user/$UID/bus
+ DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/$UID/bus"
fi
+export DBUS_SESSION_BUS_ADDRESS
pretty() {
sed \