Gert de Pagter <BackEndTea@users.noreply.github.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date
Message
Update the update prompt (#6825)
`[Oh My Zsh] Would you like to check for updates? [Y/n]: ` does not make sense,
since answering yes will download/apply the new updates instead of checking for them.
Diff
1diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
2index a57f6da0fcad62a4a048e4d4769a9b4102805f41..b42b877506a1b8cd95a05f82f68e627a31607c75 100644
3--- a/tools/check_for_upgrade.sh
4+++ b/tools/check_for_upgrade.sh
5@@ -42,7 +42,7 @@ if mkdir "$ZSH/log/update.lock" 2>/dev/null; then
6 if [ "$DISABLE_UPDATE_PROMPT" = "true" ]; then
7 _upgrade_zsh
8 else
9- echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c"
10+ echo "[Oh My Zsh] Would you like to update? [Y/n]: \c"
11 read line
12 if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
13 _upgrade_zsh