mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-28 18:20:09 +00:00
532190ecce
* feat(dev): add easy local iso and vscode integration * fix: remove unused variables.
21 lines
426 B
Bash
Executable File
21 lines
426 B
Bash
Executable File
#!/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 |