summaryrefslogtreecommitdiff
path: root/tools/check_for_upgrade.sh
AgeCommit message (Collapse)Author
2022-02-11fix(updater): fix input check on non-interactive runsMarc Cornellà
Reference: https://www.zsh.org/mla/users/2022/msg00067.html
2022-02-11fix(updater): do not swallow 1 character in check for user inputMarc Cornellà
Co-authored-by: Philippe Troin <phil@fifi.org>
2022-02-07feat(updater): do not update when user already typed some characters (#9699)Marc Cornellà
Fixes #9699
2022-01-22fix: do not call chpwd hooks in subshellsMarc Cornellà
2022-01-13fix(updater): give priority to `zstyle` settings if set (#10587)Marc Cornellà
Fixes #10587
2021-12-01feat(updater): show command to update when update skipped (#10465)Nick Aldwin
2021-11-25fix(updater): stop update if `$ZSH` is not a git repository (#10448)Marc Cornellà
Fixes #10448
2021-11-10fix(updater): avoid `git -C` for compatibility with git < v1.8.5 (#10404)Marc Cornellà
Fixes #10404
2021-11-09refactor(updater): simplify check for available updatesMarc Cornellà
2021-11-05fix(updater): stop update if connection unavailableMarc Cornellà
2021-10-04feat(updater): check if there are updates before prompting (#8387)Marc Cornellà
Fixes #8387
2021-10-04feat(updater): add mode to only remind you to update when it's time (#10187)Marc Cornellà
Fixes #10187 Co-authored-by: NoPreserveRoot <NoPreserveRoot@pm.me>
2021-10-04refactor(updater): change auto-update settings to use `zstyle`Marc Cornellà
2021-07-08fix(update): fix error exit code on update check (#10033)Marc Cornellà
This patch removes the 'exit 1' status code when the update check finishes or is ended with CTRL+C. Fixes #10033
2021-03-01fix(update): don't error on upgrade no-op (#9685)Cai Cooper
* Don't error on upgrade no-op No error code is required for a non failure scenario. * Manually check whether changes were pulled in `omz update` Co-authored-by: Marc Cornellà <hello@mcornella.com>
2021-01-21fix(updater): refresh date of last update only on successful updateMarc Cornellà
2020-12-07fix(updater): don't show changelog when running unattended update (#9495)Marc Cornellà
Fixes #9495
2020-11-30refactor(updater): switch to Zsh execution and fix git remote detection logicMarc Cornellà
2020-07-13update: prefix rm call with command in trap (#9107)M. Yas. Davoodeh
* Suppress the problematic trap output in check_upg The newly added trap, in systems where `rm` is aliased to `rm="rm -v"`, shows a message stating that "update.lock" has been removed each time `zsh` is called. I simply suppressed it with directing the output to `/dev/null`. * Use `command` instead of >/dev/null to suppress
2020-06-28update: change dash in function name for sh compat (fixes #9064)Marc Cornellà
2020-06-28update: only update on a valid affirmative input (#9062)alexagnelli
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-06-09update: refactor and fix logic in check_for_upgrade.sh (#8939)Marc Cornellà
2019-04-07upgrade: fix lock-out on first upgrade checkMarc Cornellà
This early return made it so the lock wasn't removed, therefore locking out the upgrade script from ever entering the upgrade routine. Fixes #6138 Note: the logic needs some rework.
2018-06-15Fixed Issue #4550: Move ~/.zsh-update file to $ZSH_CACHE_DIRChao Du
2018-05-15Update the update prompt (#6825)Gert de Pagter
`[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.
2016-10-03Convert "if then" statements to "if; then" one-linersFabian Wolff
2016-10-03Use rmdir instead of rm -rFabian Wolff
2016-10-03Implement a locking mechanism to avoid multiple update prompts (fixes #3766)Fabian Wolff
2016-08-09Replace /bin/sh with sh for portability (#5291)Fredrik Fornwall
This makes things work even on system lacking /bin/sh, such as on non-rooted Android systems.
2015-11-29Merge pull request #4207 from mpscholten/masterMarc Cornellà
Also accept any forms of yes as an answer to the "do you want to update?" prompt
2015-10-16Check for git before trying to upgrade, as per #4504Arvind Chembarpu
2015-08-03Also accept any forms of yes as an answer to the "do you want to update?" promptMarc Scholten
2015-06-10No input for Update Check defaults to YesHeroCC
2014-12-15fix(tools/check_for_upgrade): Don't source profileMark Feltner
Reverts #2296, but mostly #1883. There is no need to source ~/.profile when this script is read. oh-my-zsh writes no configuration data in ~/.profile. If the user wishes to use data within ~/.profile, then they should source it in another place. Fixes #2315
2014-11-06Merge pull request #2946 from moinakg/masterRobby Russell
Solaris portability tweaks.
2014-10-14Change to epoch target in days instead of seconds.Moinak Ghosh
2014-09-17Convert epoch_target from days to seconds.Moinak Ghosh
2014-09-16Update Solaris changes to use OSTYPE and zsh datetime module.Moinak Ghosh
2014-08-20Replace /usr/bin/env with envFredrik Fornwall
Some environments (such as Android) does not have /usr/bin.
2014-07-11Solaris portability tweaks.Moinak Ghosh
2014-06-04Cancel upgrade if $ZSH is not writablen.st
from #2360
2014-05-24fix(tools/check_for_upgrade): Don't source profileMark Feltner
Reverts #2296, but mostly #1883. There is no need to source ~/.profile when this script is read. oh-my-zsh writes no configuration data in ~/.profile. If the user wishes to use data within ~/.profile, then they should source it in another place. Fixes #2315
2014-05-24Write the update file even if `CLOBBER` is unset.Adam Luikart
2013-12-18Revert "Cancel update if the current user doesn't have write permissions for ↵Robby Russell
the oh-my-zsh directory." This reverts commit 152e1e07e0397ecc3f1778ea597d081c33ee8ff4.
2013-12-18Cancel update if the current user doesn't have write permissions for the ↵n.st
oh-my-zsh directory.
2013-12-03source ~/.profile only if it existsPatrick Stadler
2013-06-11source ~/.profile for upgrading (to source the proxy configuration)Gaetan Semet
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
2012-11-26Add UPDATE_ZSH_DAYS settingEric Danielson
2012-07-20auto-upadate feature will now reset the epoch so that if a user doesn't say ↵Robby Russell
yes, it won't ask them again for a while. fixes #1240
2012-05-31Now with 50% less auto-updates.Robby Russell