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.
pull/80/head
Jorge Bucaran 9 years ago
parent 6d2315981c
commit 401647927e

@ -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

Loading…
Cancel
Save