<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -42,7 +42,7 @@ done
 function convert_url() {
         local url=$1
         test -n &quot;$url&quot; || return 1
-        test &quot;${url%:*}&quot; = 'http' || return 1
+        test &quot;${url%%:*}&quot; = 'http' || return 1
 
         local urllen=&quot;${#url}&quot;
 
@@ -73,7 +73,7 @@ function convert_url() {
         local submit=&quot;http://2tu.us/?save=y&amp;url=$url&quot;
 
         local res=$(wget -q -O - &quot;$submit&quot; | awk -F&quot;'&quot; '/Your tight URL is:/ { print $2 }')
-        if test &quot;${res%:*}&quot; = 'http' -a &quot;${#res}&quot; -lt &quot;$urllen&quot; ; then
+        if test &quot;${res%%:*}&quot; = 'http' -a &quot;${#res}&quot; -lt &quot;$urllen&quot; ; then
                 echo $res
                 return 0
         fi</diff>
      <filename>bti-shrink-urls</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e542ef7acd57bd83ea942d5d3fcc5c0e590749ac</id>
    </parent>
  </parents>
  <author>
    <name>Bart Trojanowski</name>
    <email>bart@jukie.net</email>
  </author>
  <url>http://github.com/gregkh/bti/commit/f7d42cbadbf5c7b2fbdfd75586afbc87e2976519</url>
  <id>f7d42cbadbf5c7b2fbdfd75586afbc87e2976519</id>
  <committed-date>2009-03-23T13:06:47-07:00</committed-date>
  <authored-date>2009-03-23T13:05:52-07:00</authored-date>
  <message>bti-shrink-urls - properly handle urls with :</message>
  <tree>bb4ca0577a40720c070799de6b210a89f5a09a56</tree>
  <committer>
    <name>Bart Trojanowski</name>
    <email>bart@jukie.net</email>
  </committer>
</commit>
