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:
Vladislav Bolkhovitin
2008-08-13 18:09:23 +00:00
parent aab4e1d1ff
commit 9a94dbe2e6
2 changed files with 6 additions and 2 deletions

View File

@@ -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 $?

View File

@@ -126,4 +126,4 @@ case "$1" in
exit 1
esac
exit 0
exit $?