db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpendle...@apache.org
Subject svn commit: r826263 - /db/derby/code/trunk/bin/setEmbeddedCP
Date Sat, 17 Oct 2009 14:47:50 GMT
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}"



Mime
View raw message