bazzite/just_scripts/container_mgr.sh
m2 532190ecce
feat(dev): add easy local iso and vscode integration (#1127)
* feat(dev): add easy local iso and vscode integration

* fix: remove unused variables.
2024-05-15 09:43:05 -07:00

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