diff options
author | Marc Cornellà <marc.cornella@live.com> | 2020-12-02 11:57:37 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2020-12-02 11:57:37 +0100 |
commit | 3f8af040e9ed2d940451a5259e9c44308b695e60 (patch) | |
tree | 721e5a849b9a9054352151558ebecf0ded4a4b83 /tools | |
parent | 021f0251e072b0cd2c2f1bfb5b0d2f57fbdfdc50 (diff) | |
download | zsh-3f8af040e9ed2d940451a5259e9c44308b695e60.tar.gz zsh-3f8af040e9ed2d940451a5259e9c44308b695e60.tar.bz2 zsh-3f8af040e9ed2d940451a5259e9c44308b695e60.zip |
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
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/upgrade.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/upgrade.sh b/tools/upgrade.sh index e41817885..2edf5b059 100755 --- a/tools/upgrade.sh +++ b/tools/upgrade.sh @@ -33,7 +33,7 @@ if [ -t 1 ]; then fi # Update upstream remote to ohmyzsh org -git remote -v | while read remote url _; do +git remote -v | while read remote url extra; do case "$url" in https://github.com/robbyrussell/oh-my-zsh(|.git)) git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git" |