Author: pcc-guest
Date: 2010-09-04 17:55:15 +0000 (Sat, 04 Sep 2010)
New Revision: 12963

Modified:
   trunk/maven-repo-helper/debian/changelog
   trunk/maven-repo-helper/src/main/share/mh_lib.sh
Log:
Fix a long option quoting bug

Modified: trunk/maven-repo-helper/debian/changelog
===================================================================
--- trunk/maven-repo-helper/debian/changelog    2010-09-04 17:54:53 UTC (rev 
12962)
+++ trunk/maven-repo-helper/debian/changelog    2010-09-04 17:55:15 UTC (rev 
12963)
@@ -3,6 +3,7 @@
   [ Peter Collingbourne ]
   * Document the correct order of attributes in rules files
   * Escape all $ characters in usage messages
+  * Fix a long option quoting bug
 
   [ Ludovic Claude ]
   * mh_transformpoms: Remove warning about missing parent dependency

Modified: trunk/maven-repo-helper/src/main/share/mh_lib.sh
===================================================================
--- trunk/maven-repo-helper/src/main/share/mh_lib.sh    2010-09-04 17:54:53 UTC 
(rev 12962)
+++ trunk/maven-repo-helper/src/main/share/mh_lib.sh    2010-09-04 17:55:15 UTC 
(rev 12963)
@@ -25,12 +25,12 @@
          syntax
       elif [ "-" = "${1:1:1}" ]; then
       # long opt
-         optn=$(echo $1 | sed -n 's/^--\([^=]*\)\(=.*\)*$/\1/p' | sed 
's/-/_/g')
+         optn=$(echo "$1" | sed -n 's/^--\([^=]*\)\(=.*\)*$/\1/p' | sed 
's/-/_/g')
          if [ -z "$optn" ] || ! echo $ARGS | sed 's/-/_/g' | grep $optn 
>/dev/null; then
             echo "Invalid option: $optn"
             syntax
          fi
-         optv=$(echo $1 | sed -n 's/^[^=]*=\(.*\)$/\1/p')
+         optv=$(echo "$1" | sed -n 's/^[^=]*=\(.*\)$/\1/p')
          if [ -z "$optv" ]; then
             optv=true
          fi


_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-commits

Reply via email to