afm-util: report correctly error status of dbus-send
authorJosé Bollo <jose.bollo@iot.bzh>
Mon, 26 Jun 2017 08:29:17 +0000 (10:29 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Wed, 28 Jun 2017 16:47:55 +0000 (18:47 +0200)
Bug-AGL: SPEC-699

Change-Id: I8398f9dedefbe02a1ba57ed3725fa680a8db3cfa
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
scripts/afm-util

index 9df5284..9313b50 100755 (executable)
@@ -20,6 +20,7 @@ send() {
                org.AGL.afm.user.$1 \
                "string:$2" |
        pretty
+       return ${PIPESTATUS[0]}
 }
 
 case "$1" in