From 712cd07bff7a0998ad4043a3c80e7f65c1a42ad7 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Tue, 15 Mar 2016 22:15:32 +0900 Subject: [PATCH] More verbose and safer has jobs check. --- functions/fisher_update.fish | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/functions/fisher_update.fish b/functions/fisher_update.fish index 70dad2a..1046530 100644 --- a/functions/fisher_update.fish +++ b/functions/fisher_update.fish @@ -53,7 +53,7 @@ function fisher_update -d "Update plugins" printf "fisher: I couldn't update Fisherman.\n\n" > $stderr return 1 end - + debug "Update Fisherman ok" printf "Aye! Fisherman %s updated (%0.fs)\n" ( @@ -106,7 +106,11 @@ function fisher_update -d "Update plugins" end end - while jobs | grep . -q + while true + set -l has_jobs (jobs) + if test -z "$has_jobs" + break + end end for plugin in $fisher_updated_plugins