#! /usr/bin/env bash set -o errexit image="$1" [ -n "$image" ] || { echo "Usage: $0 "; exit 1; } container=$(buildah from ${image}) path=$(buildah mount $container) mkdir -p ../repos/ cp -ra "$path/ccpi/repos"/* ../repos/ buildah umount $container