Verified Commit 4a66fe01 authored by noplanman's avatar noplanman
Browse files

Fix strange issue where detour via stdout for extract literally broke the binary

parent d98a5edc
......@@ -6,7 +6,8 @@
extract_binary_from_image() {
# Create a temporary container and extract the borg binary.
TMP_CONTAINER_ID=$(docker create "${DOCKER_IMAGE}")
docker cp -L $TMP_CONTAINER_ID:/usr/bin/borg - > "${BORG_BINARY}"
# Do NOT print to stdout and write to file with " - > "!!
docker cp -L $TMP_CONTAINER_ID:/usr/bin/borg "${BORG_BINARY}"
docker rm -v $TMP_CONTAINER_ID >/dev/null
chmod +x "${BORG_BINARY}"
}
......
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