Skip plugin update if there are no plugins to update.

This commit is contained in:
Jorge Bucaran 2016-03-16 14:43:07 +09:00
parent 712cd07bff
commit 1344762dcb
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30

View file

@ -87,6 +87,7 @@ function fisher_update -d "Update plugins"
set -l total (count $plugins)
set -U fisher_updated_plugins
if set -q plugins[1]
printf "Updating plugins...\n" $name > $stderr
for path in $plugins
@ -120,6 +121,7 @@ function fisher_update -d "Update plugins"
__fisher_plugin_enable "$plugin" "$path"
end
end
end
set time (math (date +%s) - $time)