mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Don't return 1 if there were no updates.
This commit is contained in:
parent
48c51c980d
commit
c46c0d7e1b
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue