refactor: remove _fisher_wait function; use inline solution

To be eventually replaced by the `wait` builtin.
pull/531/head
Jorge Bucaran 5 years ago
parent 972eed7aa8
commit 12ee3cb33e
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

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

Loading…
Cancel
Save