Commit 3f8af040 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

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
parent 021f0251
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment