From b88d7f1483a02233bc3f8626f02be1f806d4f391 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Sat, 30 Jan 2016 21:12:44 +0700 Subject: [PATCH] fix: if directory was empty, there was a nasty message. --- bin/compose | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compose b/bin/compose index a228507..c4fd804 100755 --- a/bin/compose +++ b/bin/compose @@ -1671,7 +1671,7 @@ get_docker_compose_single_opts_list() { clean_cache() { local i=0 - for f in $(ls -t "$CACHEDIR/"*.cache.* | tail -n +500); do + for f in $(ls -t "$CACHEDIR/"*.cache.* 2>/dev/null | tail -n +500); do ((i++)) rm -f "$f" done