#!/bin/sh -e
#
# pod-run - run an existing podman image

if [ -z "$1" ]; then
  # shellcheck disable=SC2312
  podman run --interactive \
    --tty "$(podman images --format "{{.ID}}\n{{.Repository}}" | grep -v '<none>' | fzf)"
else
  podman run --interactive --tty "$1"
fi
