This commit is contained in:
Alkindi42 2022-01-09 11:00:02 -04:00 committed by GitHub
commit 3ae58888d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -21,15 +21,16 @@ pull_changes() {
local plugin="$1"
local plugin_path="$(plugin_path_helper "$plugin")"
cd "$plugin_path" &&
GIT_TERMINAL_PROMPT=0 git pull &&
GIT_TERMINAL_PROMPT=0 git fetch &&
GIT_TERMINAL_PROMPT=0 git log --pretty="%as %h %cr %s" ..origin/master &&
GIT_TERMINAL_PROMPT=0 git pull > /dev/null 2>&1 &&
GIT_TERMINAL_PROMPT=0 git submodule update --init --recursive
}
update() {
local plugin="$1"
$(pull_changes "$plugin" > /dev/null 2>&1) &&
echo_ok " \"$plugin\" update success" ||
echo_err " \"$plugin\" update fail"
echo_ok "Updating $plugin"
pull_changes "$plugin" || echo_err "update fail"
}
update_all() {