mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-14 04:24:22 +08:00
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
This commit is contained in:
1 parent
021f0251e0
commit
3f8af040e9
1 file changed
+1
-1
+1
-1
@@ -33,7 +33,7 @@ if [ -t 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Update upstream remote to ohmyzsh org
|
# 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
|
case "$url" in
|
||||||
https://github.com/robbyrussell/oh-my-zsh(|.git))
|
https://github.com/robbyrussell/oh-my-zsh(|.git))
|
||||||
git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git"
|
git remote set-url "$remote" "https://github.com/ohmyzsh/ohmyzsh.git"
|
||||||
|
|||||||
Reference in new issue
Block a user