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.

Environment

None

Activity

Stephane Desneux 
June 23, 2017 at 4:19 PM

Reassign to José.

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Contract ID

Components

Affects versions

Priority

Created June 23, 2017 at 8:26 AM
Updated July 24, 2017 at 11:45 PM
Resolved June 29, 2017 at 8:30 AM