mirror of https://github.com/tmux-plugins/tpm
Merge pull request #239 from FranklinYu/update-verbosely
Show the output of Git pull when updating pluginspull/102/head
commit
fdb30228b1
|
@ -26,10 +26,15 @@ pull_changes() {
|
||||||
}
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
local plugin="$1"
|
local plugin="$1" output
|
||||||
$(pull_changes "$plugin" > /dev/null 2>&1) &&
|
output=$(pull_changes "$plugin" 2>&1)
|
||||||
echo_ok " \"$plugin\" update success" ||
|
if (( $? == 0 )); then
|
||||||
|
echo_ok " \"$plugin\" update success"
|
||||||
|
echo_ok "$(echo "$output" | sed -e 's/^/ | /')"
|
||||||
|
else
|
||||||
echo_err " \"$plugin\" update fail"
|
echo_err " \"$plugin\" update fail"
|
||||||
|
echo_err "$(echo "$output" | sed -e 's/^/ | /')"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
update_all() {
|
update_all() {
|
||||||
|
|
Loading…
Reference in New Issue