Bug#563121: Returning a status of non-zero might not be safe
Hello,
test -x "`which foo`" && foo bar baz
returns status 1, which comes to an error if a script executed this as
the last command. E.g. like #563121, prerm will exit with status 1 if
defoma not found unless explicitly writing the last line "exit 0" in
the prerm template.
So I think changing defoma templates like
if test -x "`which foo`"; then
foo bar baz
fi
would be good, since the script should simply ignore the block when
defoma is not found.
Regards,
--
YOSHINO Yoshihito <yy.y.ja.jp@gmail.com>
Reply to: