From 398e2c3e8fe52f5381fa1d4730fe27492c17635f 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(-) (limited to 'lib/container/remove') 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