3f8af040e9ed2d940451a5259e9c44308b695e60

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

fix(updater): fix ignored variable name in read

I used _ which is a convention in other languages, but in shell scripting
$_ is a special variable set by the shell, and in Zsh versions older than
5.0.6 it complains for being a `read-only variable`.

Fixes #9482

Diff

 1diff --git a/tools/upgrade.sh b/tools/upgrade.sh
 2index e41817885a4203c23b16d3847e02103017ad5ff9..2edf5b05976467169b61e1b7e8f3307762b11705 100755
 3--- a/tools/upgrade.sh
 4+++ b/tools/upgrade.sh
 5@@ -33,7 +33,7 @@ if [ -t 1 ]; then
 6 fi
 7 
 8 # Update upstream remote to ohmyzsh org
 9-git remote -v | while read remote url _; do
10+git remote -v | while read remote url extra; do
11   case "$url" in
12   https://github.com/robbyrussell/oh-my-zsh(|.git))
13     git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git"