pms-cli/utils/attach.sh
2024-04-21 14:46:19 +02:00

10 lines
234 B
Bash

#!/usr/bin/env bash
function attach() {
if [[ -z $(podman container ps | grep "${1}") ]]; then
log e "Container '${1}' is not running!"
exit 1
fi
log i "Attaching to container '${1}'"
podman container attach "${1}"
}