From 2ddd0a58dae834f173277e51488f6ba30f1cad6a Mon Sep 17 00:00:00 2001 From: Manuel Bachmann Date: Thu, 7 Apr 2016 16:36:18 +0000 Subject: [PATCH] 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 --- scripts/afm-util | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 \ -- 2.16.6