From 12ee3cb33e3d34ba5cf3a58d52482c34964fc630 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Mon, 21 Jan 2019 20:51:25 +0900 Subject: [PATCH] refactor: remove _fisher_wait function; use inline solution To be eventually replaced by the `wait` builtin. --- fisher.fish | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/fisher.fish b/fisher.fish index 0d744e2..20f3a71 100644 --- a/fisher.fish +++ b/fisher.fish @@ -325,7 +325,10 @@ function _fisher_fetch end if test ! -z "$pkg_jobs" - _fisher_wait $pkg_jobs + while for job in $pkg_jobs + contains -- $job (_fisher_jobs); and break + end + end for pkg in $next_pkgs if test -d "$pkg" set actual_pkgs $actual_pkgs $pkg @@ -423,13 +426,6 @@ function _fisher_jobs jobs $argv | command awk '/^[0-9]+\t/ { print $1 }' end -function _fisher_wait - while for job in $argv - contains -- $job (_fisher_jobs); and break - end - end -end - function _fisher_now -a elapsed switch (command uname) case Darwin \*BSD