OSDN Git Service

Be more POSIXly correct in the use of expr.
authorDan Bornstein <danfuzz@android.com>
Wed, 12 Aug 2009 19:16:40 +0000 (12:16 -0700)
committerJean-Baptiste Queru <jbq@google.com>
Tue, 25 Aug 2009 15:03:47 +0000 (08:03 -0700)
dx/etc/dx

index dae5874..e1a9691 100644 (file)
--- a/dx/etc/dx
+++ b/dx/etc/dx
@@ -63,7 +63,7 @@ javaOpts=""
 # add a command-line parameter such as "-JXmx256M" in your ant scripts, for
 # example.
 while expr "x$1" : 'x-J' >/dev/null; do
-    opt=`expr "$1" : '-J\(.*\)'`
+    opt=`expr "x$1" : 'x-J\(.*\)'`
     javaOpts="${javaOpts} -${opt}"
     shift
 done