#!/bin/sh buildah_run_script() { local cid script cid=$1 shift script=$1 shift buildah run \ --mount type=cache,target=/var/db/repos/gentoo \ --mount type=cache,target=/var/cache \ -- "${cid}" \ sh -s - "$@" \ < "${script}" }