Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
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.