From: Matthew Owens Date: Mon, 16 Jan 2023 11:47:12 +0000 (+0000) Subject: added quick script to get build assets X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=3c689da7fd6327a733210da6e909c0e72f28a3a0;p=scripts.git added quick script to get build assets --- diff --git a/assetget b/assetget new file mode 100755 index 0000000..0a24e00 --- /dev/null +++ b/assetget @@ -0,0 +1,8 @@ +#!/bin/bash + +PROJECT=$1 +OS=$2 +LATEST=$(aws s3api list-objects --bucket $1-artifacts --prefix "$2" --query "sort_by(Contents, &LastModified)[-1].Key" --output text) + +echo "getting to /tmp/..." +aws s3 cp s3://$1-artifacts/$LATEST /tmp/