sclorg / container-common-scripts

Apache License 2.0
20 stars 45 forks source link

ignore rm of cidfile if it not exist #329

Closed zmiklank closed 1 year ago

zmiklank commented 1 year ago

apparently some versions of podman delete also the cidfile during podman rm and some not. That leads to situation that in some OSes (e.g., c9s) the cleaning function fails on podman rm, as the cid_file is removed at that point. This commit fixes this behaviour.

Fixes: https://github.com/sclorg/container-common-scripts/issues/326

zmiklank commented 1 year ago

[test]