1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

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

This commit is contained in:
Marc Cornellà 2022-01-24 18:32:36 +01:00
parent 4417faf84c
commit fc40b53e64
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -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."