~ubuntu-branches/ubuntu/maverick/cloud-utils/maverick-201009260914

« back to all changes in this revision

Viewing changes to uec-publish-image

  • Committer: Scott Moser
  • Date: 2010-03-24 18:24:29 UTC
  • Revision ID: smoser@ubuntu.com-20100324182429-35j24ftrw5bli9bk
* uec-publish-image:
  - remove trailing slash on bucket input which caused failed register
  - remove trailing tab in output

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
image="${2}"
200
200
bucket="${3}"
201
201
 
 
202
# remove any trailing slashes on bucket
 
203
while [ "${bucket%/}" != "${bucket}" ]; do bucket=${bucket%/}; done
 
204
 
202
205
[ "${arch}" = "amd64" ] && arch=x86_64
203
206
 
204
207
[ "$arch" = "i386" -o "$arch" = "x86_64" ] ||