afw: Fix error report
[AGL/meta-agl.git] / meta-app-framework / recipes-core / af-main / af-main / afm-install
index 6d37bae..aadcae2 100755 (executable)
@@ -15,13 +15,14 @@ send() {
                org.AGL.afm.system.$1 \
                "string:$2" |
        pretty
+       return ${PIPESTATUS[0]}
 }
 
 case "$1" in
 
   add|install)
     f=$(realpath $2)
-    send install '{"wgt":"'"$f"'","force":true}'
+    send install '{"wgt":"'"$f"'","force":true,"reload":false}'
     ;;
 
   -h|--help|help)