From 5d0c90ff0073d12417690b91f7c3e0d81d06e8db Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 28 Nov 2019 16:30:09 +0100 Subject: [PATCH] fix: remove error message about sessions that can't be deleted Not a nice solution, but message are kept when using ``DEBUG``. Signed-off-by: Valentin Lab --- bin/compose | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/compose b/bin/compose index ad1f211..c4315bb 100755 --- a/bin/compose +++ b/bin/compose @@ -353,7 +353,10 @@ clean_unused_sessions() { for f in "$SESSION_DIR/"*; do [ -e "$f" ] || continue is_volume_used "$f" && continue - rm -f "$f" + ## XXXvlab: the second rmdir should not be useful + rm -f "$f" >/dev/null || rmdir "$f" >/dev/null || { + debug "Unexpected session remnants $f" + } done }