Don't return 1 if there were no updates.

This commit is contained in:
Jorge Bucaran 2016-03-29 21:22:14 +09:00
parent aca2314e64
commit fca41816e1
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30
2 changed files with 3 additions and 3 deletions

View file

@ -6,12 +6,12 @@ function __fisher_path_update -a path
set -l commits (
git rev-list --left-right --count "master..FETCH_HEAD" ^ /dev/null | cut -d\t -f2)
git reset --quiet --hard FETCH_HEAD
git reset --quiet --hard FETCH_HEAD ^ /dev/null
git clean -qdfx
popd
if test "$commits" -eq 0 -o -z "$commits"
if test -z "$commits" -o "$commits" -eq 0
return 1
end

View file

@ -135,7 +135,7 @@ function fisher_update -d "Update plugins"
if test -z "$fisher_updated_plugins"
printf "No plugins were updated.\n" > $stdout
set -e fisher_updated_plugins
return 1
return
end
end