From 2bead10d5ae5d4028a6d79c36ba54d6a79a422c7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 12 Nov 2016 03:07:52 +0100 Subject: Fail to find container in remove command only when both the rootfs and the config are gone already. Signed-off-by: Daniel Baumann --- lib/container/remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/container/remove b/lib/container/remove index 843e9c3..04e7d30 100755 --- a/lib/container/remove +++ b/lib/container/remove @@ -82,7 +82,7 @@ then Usage fi -if [ ! -e "${MACHINES}/${NAME}" ] +if [ ! -e "${MACHINES}/${NAME}" ] && [ ! -e "${CONFIG}/${NAME}.conf" ] then echo "'${NAME}': no such container" >&2 exit 1 -- cgit v1.2.3