~laney/ubuntu-cdimage/test-fixes

« back to all changes in this revision

Viewing changes to bin/archive-image

  • Committer: Łukasz 'sil2100' Zemczak
  • Date: 2022-08-11 10:26:10 UTC
  • Revision ID: lukasz.zemczak@canonical.com-20220811102610-z4suqgnly5x1vq9j
archive-image: ...we also have one .img.gz image.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
OLD_RELEASES="/srv/cdimage.ubuntu.com/www/old-releases"
76
76
 
77
77
images_arg=$(realpath -s $1)
78
 
# Remove .img, .img.xz or .iso suffix, in case it's given
 
78
# Remove .img, .img.xz, .img.gz or .iso suffix, in case it's given
79
79
images_arg=${images_arg%.iso}
80
80
images_arg=${images_arg%.img}
81
81
images_arg=${images_arg%.img.xz}
 
82
images_arg=${images_arg%.img.gz}
82
83
images_base=$(basename "$images_arg")
83
84
images_source=$(dirname "$images_arg")
84
85