diff options
Diffstat (limited to 'tools/build-env')
-rwxr-xr-x | tools/build-env/build.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/build-env/build.sh b/tools/build-env/build.sh index 5f25155a..4351f8b8 100755 --- a/tools/build-env/build.sh +++ b/tools/build-env/build.sh @@ -2,7 +2,12 @@ cd "$(dirname "$0")" -containerify="$(command -v podman docker)" +containerify="$(command -v podman || command -v docker)" + +if [ -z "$containerify" ]; then + echo "podman or docker required" >&2 + exit 1 +fi $containerify build -f ./Containerfile --squash \ --build-arg os="${2:-debian}" \ |