mirror of
https://github.com/jorgebucaran/fisher
synced 2024-06-28 23:01:50 +02:00
refactor: remove _fisher_wait function; use inline solution
To be eventually replaced by the `wait` builtin.
This commit is contained in:
parent
972eed7aa8
commit
12ee3cb33e
12
fisher.fish
12
fisher.fish
|
@ -325,7 +325,10 @@ function _fisher_fetch
|
||||||
end
|
end
|
||||||
|
|
||||||
if test ! -z "$pkg_jobs"
|
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
|
for pkg in $next_pkgs
|
||||||
if test -d "$pkg"
|
if test -d "$pkg"
|
||||||
set actual_pkgs $actual_pkgs $pkg
|
set actual_pkgs $actual_pkgs $pkg
|
||||||
|
@ -423,13 +426,6 @@ function _fisher_jobs
|
||||||
jobs $argv | command awk '/^[0-9]+\t/ { print $1 }'
|
jobs $argv | command awk '/^[0-9]+\t/ { print $1 }'
|
||||||
end
|
end
|
||||||
|
|
||||||
function _fisher_wait
|
|
||||||
while for job in $argv
|
|
||||||
contains -- $job (_fisher_jobs); and break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function _fisher_now -a elapsed
|
function _fisher_now -a elapsed
|
||||||
switch (command uname)
|
switch (command uname)
|
||||||
case Darwin \*BSD
|
case Darwin \*BSD
|
||||||
|
|
Loading…
Reference in a new issue