The current h2.sh script only works if it's ran from within the "bin/"
directory of the distribution (ie ./h2.sh). This patch makes it work
from any directory (ie /opt/h2/bin/h2.sh):

--- h2.sh       2011-11-28 13:14:20.000000000 -0200
+++ h2.sh.orig  2011-11-28 13:13:45.000000000 -0200
@@ -1,5 +1,7 @@
 #!/bin/sh
-cp=h2-1.3.162.jar
+dir="$(dirname $0)"
+cp="$dir/h2-1.3.162.jar"
+
 if [ -n "$H2DRIVERS" ] ; then
   cp="$cp:$H2DRIVERS"
 fi

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to