From a5f1d3aeea5033f26aa2a9ffbbe623522f83259b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 14 Jun 2016 21:08:15 +0200 Subject: Silencing error message in container list command if machine directory is not readable. Signed-off-by: Daniel Baumann --- lib/container/list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/container') diff --git a/lib/container/list b/lib/container/list index 8b55e09..e1e3855 100755 --- a/lib/container/list +++ b/lib/container/list @@ -104,7 +104,7 @@ EOF ;; esac -CONTAINERS="$(cd "${MACHINES}" && find -maxdepth 1 -type d -and -not -name 'lost+found' -and -not -name '.snap' -and -not -name '.snapshot' -printf '%P\n' | sort)" +CONTAINERS="$(cd "${MACHINES}" 2>/dev/null && find -maxdepth 1 -type d -and -not -name 'lost+found' -and -not -name '.snap' -and -not -name '.snapshot' -printf '%P\n' | sort)" for CONTAINER in ${CONTAINERS} do -- cgit v1.2.3