afm-util: fix incorrect DBUS_SESSION_BUS_ADDRESS syntax
authorManuel Bachmann <mbc@iot.bzh>
Thu, 7 Apr 2016 16:36:18 +0000 (16:36 +0000)
committerManuel Bachmann <mbc@iot.bzh>
Thu, 7 Apr 2016 16:36:18 +0000 (16:36 +0000)
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>
scripts/afm-util

index cc7ab55..60434a7 100755 (executable)
@@ -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 \