浏览代码

style(updater): silence `git pull` output and show errors in English

Marc Cornellà 2 年之前
父节点
当前提交
fc40b53e64
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/upgrade.sh

+ 1 - 1
tools/upgrade.sh

@@ -194,7 +194,7 @@ last_commit=$(git rev-parse "$branch")
 
 # Update Oh My Zsh
 printf "${BLUE}%s${RESET}\n" "Updating Oh My Zsh"
-if git pull --rebase $remote $branch; then
+if LANG= git pull --quiet --rebase $remote $branch; then
   # Check if it was really updated or not
   if [[ "$(git rev-parse HEAD)" = "$last_commit" ]]; then
     message="Oh My Zsh is already at the latest version."