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
aca2314e64
commit
fca41816e1
2 changed files with 3 additions and 3 deletions
|
@ -6,12 +6,12 @@ function __fisher_path_update -a path
|
||||||
set -l commits (
|
set -l commits (
|
||||||
git rev-list --left-right --count "master..FETCH_HEAD" ^ /dev/null | cut -d\t -f2)
|
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
|
git clean -qdfx
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
if test "$commits" -eq 0 -o -z "$commits"
|
if test -z "$commits" -o "$commits" -eq 0
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -135,7 +135,7 @@ function fisher_update -d "Update plugins"
|
||||||
if test -z "$fisher_updated_plugins"
|
if test -z "$fisher_updated_plugins"
|
||||||
printf "No plugins were updated.\n" > $stdout
|
printf "No plugins were updated.\n" > $stdout
|
||||||
set -e fisher_updated_plugins
|
set -e fisher_updated_plugins
|
||||||
return 1
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue