db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpendle...@apache.org
Subject svn commit: r895666 - in /db/derby/code/trunk/bin: setNetworkClientCP setNetworkServerCP
Date Mon, 04 Jan 2010 15:38:24 GMT
Author: bpendleton
Date: Mon Jan  4 15:38:24 2010
New Revision: 895666

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

Since the setNetworkClientCP and setNetworkServerCP scripts are designed
to be called from another script, or sourced from the shell, they should
use 'return' rather than 'exit', to report an error.

This change was contributed by John Storta, Jr. (js at storta dot net).

Modified:
    db/derby/code/trunk/bin/setNetworkClientCP
    db/derby/code/trunk/bin/setNetworkServerCP

Modified: db/derby/code/trunk/bin/setNetworkClientCP
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/bin/setNetworkClientCP?rev=895666&r1=895665&r2=895666&view=diff
==============================================================================
--- db/derby/code/trunk/bin/setNetworkClientCP (original)
+++ db/derby/code/trunk/bin/setNetworkClientCP Mon Jan  4 15:38:24 2010
@@ -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/derbyclient.jar:${DERBY_HOME}/lib/derbytools.jar:${CLASSPATH}"

Modified: db/derby/code/trunk/bin/setNetworkServerCP
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/bin/setNetworkServerCP?rev=895666&r1=895665&r2=895666&view=diff
==============================================================================
--- db/derby/code/trunk/bin/setNetworkServerCP (original)
+++ db/derby/code/trunk/bin/setNetworkServerCP Mon Jan  4 15:38:24 2010
@@ -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/derbynet.jar:${DERBY_HOME}/lib/derbytools.jar:${CLASSPATH}"



Mime
View raw message