mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
tools: Fix selection of container engine
Seems command -v in sh only checks and returns one argument, unlike bash.
This commit is contained in:
parent
4b0463968a
commit
d26ccd8400
1 changed files with 6 additions and 1 deletions
|
@ -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}" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue