afm-install script always returns success even when any error occurred
Description
afm-install always returns success even when dbus-send failed by some reason.
This is an issue caused by send() in this script uses pipe although doesn't care about pipe's exit status, so send() always returns the status of sed and it usually success.
E.g. If using /bin/bash, PIPESTATUS can be used for this issue.
afm-install
always returns success even whendbus-send
failed by some reason.This is an issue caused by
send()
in this script uses pipe although doesn't care about pipe's exit status, sosend()
always returns the status ofsed
and it usually success.E.g. If using
/bin/bash
,PIPESTATUS
can be used for this issue.