Skip to content
Commit d1338116 authored by Zev Weiss's avatar Zev Weiss
Browse files

jsnbd: Remove superfluous 'exit 0' from state hook script



The shell will implicitly exit with the exit status of the last command
on its own, so having 'exit 0' at the end of a script is at best
redundant, and may actually cause problems by masking a non-zero exit
status of the preceding command and preventing the error from
propagating as it should.  (In this particular case we've got 'set -e'
in effect so a command exiting non-zero would terminate the script
anyway, but it would be better not to rely on that.)

Signed-off-by: default avatarZev Weiss <zev@bewilderbeest.net>
Change-Id: I1ba2821290695eb7ffbc5937959917a8cf5351f9
parent 6f03dd83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment