You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by bp...@apache.org on 2009/10/17 16:47:50 UTC

svn commit: r826263 - /db/derby/code/trunk/bin/setEmbeddedCP

Author: bpendleton
Date: Sat Oct 17 14:47:49 2009
New Revision: 826263

URL: http://svn.apache.org/viewvc?rev=826263&view=rev
Log:
DERBY-4283: setEmbeddedCP should use return, not exit, on error

Since the setEmbeddedCP script is designed to be called from another
script, or sourced from the shell, it should use 'return' rather than
'exit', to report an error.

This change was contributed by Susumu Ishizuka (susumuishizuka at ieee dot org)


Modified:
    db/derby/code/trunk/bin/setEmbeddedCP

Modified: db/derby/code/trunk/bin/setEmbeddedCP
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/bin/setEmbeddedCP?rev=826263&r1=826262&r2=826263&view=diff
==============================================================================
--- db/derby/code/trunk/bin/setEmbeddedCP (original)
+++ db/derby/code/trunk/bin/setEmbeddedCP Sat Oct 17 14:47:49 2009
@@ -20,7 +20,7 @@
 if [ -z "$DERBY_HOME" ] ; then
   echo "Error: DERBY_HOME is not set. Please set the DERBY_HOME environment variable"
   echo "to the location of your Derby installation."
-  exit 1
+  return 1
 fi
 
 export CLASSPATH="${DERBY_HOME}/lib/derby.jar:${DERBY_HOME}/lib/derbytools.jar:${CLASSPATH}"