mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-29 12:22:20 +00:00
21 lines
426 B
Bash
21 lines
426 B
Bash
|
#!/usr/bin/bash
|
||
|
valid_manager=(
|
||
|
docker
|
||
|
podman
|
||
|
podman-remote
|
||
|
)
|
||
|
if [[ -n ${CONTAINER_MGR} ]]; then
|
||
|
if [[ "${valid_manager[*]}" =~ ${CONTAINER_MGR} ]]; then
|
||
|
echo "${CONTAINER_MGR}"
|
||
|
else
|
||
|
exit 1
|
||
|
fi
|
||
|
elif [[ $(command -v docker) ]]; then
|
||
|
echo docker
|
||
|
elif [[ $(command -v podman) ]]; then
|
||
|
echo podman
|
||
|
elif [[ $(command -v podman-remote) ]];then
|
||
|
echo podman-remote
|
||
|
else
|
||
|
exit 1
|
||
|
fi
|