Browse code

Merge "upload_image.sh should parse filenames correctly"

Jenkins authored on 2014/01/26 11:33:34
Showing 1 changed files
... ...
@@ -1542,7 +1542,7 @@ function upload_image() {
1542 1542
         # NOTE: For backwards compatibility reasons, colons may be used in place
1543 1543
         # of semi-colons for property delimiters but they are not permitted
1544 1544
         # characters in NTFS filesystems.
1545
-        property_string=`echo "$IMAGE_NAME" | grep -oP '(?<=-)(?!.*-).+[:;].+[:;].+$'`
1545
+        property_string=`echo "$IMAGE_NAME" | grep -oP '(?<=-)(?!.*-).*[:;].*[:;].*$'`
1546 1546
         IFS=':;' read -a props <<< "$property_string"
1547 1547
         vmdk_disktype="${props[0]:-$vmdk_disktype}"
1548 1548
         vmdk_adapter_type="${props[1]:-$vmdk_adapter_type}"