mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 04:31:26 +00:00
Return value of the script depend on the return value of the
last executed function. In some functions (for example: start) the return value of the last executable is being returned but not being checked anywhere. If this last operaion fails, the return value shouldn't be 0. Signed-off-by: Dotan Barak <dotanba@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@487 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -70,10 +70,14 @@ case "$1" in
|
||||
stop)
|
||||
stop_server
|
||||
;;
|
||||
restart)
|
||||
stop_server
|
||||
start_server
|
||||
;;
|
||||
*)
|
||||
echo "Usage: {start|stop}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
exit $?
|
||||
|
||||
@@ -126,4 +126,4 @@ case "$1" in
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
||||
exit $?
|
||||
|
||||
Reference in New Issue
Block a user