mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
Better read command syntax
This commit is contained in:
parent
2ff9560ad3
commit
8d5e30a522
1 changed files with 1 additions and 3 deletions
|
|
@ -42,9 +42,7 @@ if mkdir "$ZSH/log/update.lock" 2>/dev/null; then
|
|||
if [ "$DISABLE_UPDATE_PROMPT" = "true" ]; then
|
||||
_upgrade_zsh
|
||||
else
|
||||
echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c"
|
||||
read line
|
||||
if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
|
||||
if read -q line\?"[Oh My Zsh] Would you like to check for updates? [Y/n]: " && echo; then
|
||||
_upgrade_zsh
|
||||
else
|
||||
_update_zsh_update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue