chilly-holiday-77415
12/16/2022, 8:56 PMrefined-addition-53644
12/16/2022, 8:58 PMbusy-vase-39202
12/18/2022, 10:53 AMchilly-holiday-77415
12/19/2022, 9:11 AMbetter-sunset-63499
01/01/2023, 5:09 PM#!/usr/bin/env bash
# unzip a zip to a temporary directory and output the tmpdir path
# useful for cloudasm deploys with cdk
# cdk deploy -a "$(build-support/inline-cloudassembly.sh dist/whatever.zip)/sub/path"
set -euo pipefail
# You can change these constants.
if [[ ! -f "${1}" ]] ; then
echo "Could not find cloudassembly zip '${1}'"
exit 1
fi
DIR=$(mktemp -d -t cloudasm)
unzip -q -d "${DIR}" "${1}" 1>&2
echo "${DIR}"
better-sunset-63499
01/01/2023, 5:10 PM