pacmd always returns 0 code
Submitted by wol..@..den.cz
Assigned to pul..@..op.org
Link to original bug (#107353)
Description
pacmd always returns zero exit status, even when the command fails. Compare
:( $ pacmd set-default-sink foobar ; echo $?
Sink foobar does not exist.
0
and
[ wolf@ws ] :: ~
Load: 0.38 0.24 0.15 , Memory: 6.01 %, Disk: 69.78 %
$ mount foobar ; echo $?
mount: foobar: No such file or directory
1
Returning 1 on exit would make using pacmd much easier in scripts.