test/run-builder: use command -v instead of which
The latter is non-standard according to ShellCheck. Let's use the standard one.
This commit is contained in:
parent
b1b7425ca6
commit
e6f9721276
1 changed files with 2 additions and 2 deletions
|
|
@ -11,9 +11,9 @@ if [ $UID != 0 ]; then
|
|||
fi
|
||||
|
||||
# decide whether podman or docker should be used
|
||||
if which podman 2>/dev/null >&2; then
|
||||
if command -v podman 2>/dev/null >&2; then
|
||||
CONTAINER_RUNTIME=podman
|
||||
elif which docker 2>/dev/null >&2; then
|
||||
elif command -v docker 2>/dev/null >&2; then
|
||||
CONTAINER_RUNTIME=docker
|
||||
else
|
||||
echo No container runtime found, install podman or docker.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue