Commit 7db8d1dd authored by David Dollar's avatar David Dollar

better version sorting for manifests

parent 04ba7d09
......@@ -36,7 +36,7 @@ pushd $tempdir
$basedir/aws/s3 ls $S3_BUCKET \
| grep "^${manifest_type}" \
| sed -e "s/${manifest_type}-\([0-9.]*\)\\.tgz/\\1/" \
| sort -r \
| awk 'BEGIN {FS="."} {printf("%03d.%03d.%03d %s\n",$1,$2,$3,$0)}' | sort -r | cut -d" " -f2
> manifest.${manifest_type}
# upload manifest to s3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment