aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-12-12 16:19:04 +0100
committerKim Alvefur <zash@zash.se>2023-12-12 16:19:04 +0100
commitd26ccd84004372051deeff7d68f2e9264f54055a (patch)
tree6af20ec1c2d09396563207988d08fd4e58ffdcb0 /tools
parent4b0463968ae4c31c07f7daa08b9d8ded9b832c0b (diff)
downloadprosody-d26ccd84004372051deeff7d68f2e9264f54055a.tar.gz
prosody-d26ccd84004372051deeff7d68f2e9264f54055a.zip
tools: Fix selection of container engine
Seems command -v in sh only checks and returns one argument, unlike bash.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build-env/build.sh7
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}" \