feat: verbose update log
This commit is contained in:
parent
60a36d6f7a
commit
832e4fc3ce
1 changed files with 5 additions and 4 deletions
|
@ -21,15 +21,16 @@ pull_changes() {
|
||||||
local plugin="$1"
|
local plugin="$1"
|
||||||
local plugin_path="$(plugin_path_helper "$plugin")"
|
local plugin_path="$(plugin_path_helper "$plugin")"
|
||||||
cd "$plugin_path" &&
|
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
|
GIT_TERMINAL_PROMPT=0 git submodule update --init --recursive
|
||||||
}
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
local plugin="$1"
|
local plugin="$1"
|
||||||
$(pull_changes "$plugin" > /dev/null 2>&1) &&
|
echo_ok "Updating $plugin"
|
||||||
echo_ok " \"$plugin\" update success" ||
|
pull_changes "$plugin" || echo_err "update fail"
|
||||||
echo_err " \"$plugin\" update fail"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
update_all() {
|
update_all() {
|
||||||
|
|
Loading…
Reference in a new issue