mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 16:06:36 +01:00
16 lines
179 B
Bash
Executable File
16 lines
179 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -uxe
|
|
|
|
CTRID=$(docker create $1)
|
|
|
|
function cleanup() {
|
|
docker rm "${CTRID}"
|
|
}
|
|
|
|
trap cleanup EXIT
|
|
set +e
|
|
|
|
mkdir -p $(dirname $3)
|
|
|
|
docker cp ${CTRID}:$2 $3
|