From 1a2881207dca0233c44dbef5d9499c8f152e93f7 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Wed, 3 Feb 2016 07:20:40 +0900 Subject: [PATCH] Supress unwated error message when the cache is empty. Closes #66. Running fisher --list on an empty cache will display an error message because the glob $fisher_cache/* did not expand. --- functions/__fisher_cache_list.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/__fisher_cache_list.fish b/functions/__fisher_cache_list.fish index 15ebda7..0656275 100644 --- a/functions/__fisher_cache_list.fish +++ b/functions/__fisher_cache_list.fish @@ -1,3 +1,3 @@ function __fisher_cache_list - find -L $fisher_cache/* -maxdepth 0 -type d | sed 's|.*/||' + find -L $fisher_cache/* -maxdepth 0 -type d ^ /dev/null | sed 's|.*/||' end