mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
More verbose and safer has jobs check.
This commit is contained in:
parent
d37f0ad706
commit
29853bcc2d
1 changed files with 6 additions and 2 deletions
|
@ -53,7 +53,7 @@ function fisher_update -d "Update plugins"
|
||||||
printf "fisher: I couldn't update Fisherman.\n\n" > $stderr
|
printf "fisher: I couldn't update Fisherman.\n\n" > $stderr
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
debug "Update Fisherman ok"
|
debug "Update Fisherman ok"
|
||||||
|
|
||||||
printf "Aye! Fisherman %s updated (%0.fs)\n" (
|
printf "Aye! Fisherman %s updated (%0.fs)\n" (
|
||||||
|
@ -106,7 +106,11 @@ function fisher_update -d "Update plugins"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
while jobs | grep . -q
|
while true
|
||||||
|
set -l has_jobs (jobs)
|
||||||
|
if test -z "$has_jobs"
|
||||||
|
break
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for plugin in $fisher_updated_plugins
|
for plugin in $fisher_updated_plugins
|
||||||
|
|
Loading…
Reference in a new issue