added quick script to get build assets
authorMatthew Owens <matthew@owens.tech>
Mon, 16 Jan 2023 11:47:12 +0000 (11:47 +0000)
committerMatthew Owens <matthew@owens.tech>
Mon, 16 Jan 2023 11:47:12 +0000 (11:47 +0000)
assetget [new file with mode: 0755]

diff --git a/assetget b/assetget
new file mode 100755 (executable)
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/