mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
check some errors
This commit is contained in:
parent
ae1042f515
commit
df43ea2693
1 changed files with 6 additions and 4 deletions
|
|
@ -7,13 +7,15 @@ function _current_epoch() {
|
|||
}
|
||||
|
||||
function _update_zsh_update() {
|
||||
echo "LAST_EPOCH=$(_current_epoch)" >! ${ZHS_CACHE_DIR}/.zsh-update
|
||||
}
|
||||
|
||||
function _upgrade_zsh() {
|
||||
echo "LAST_EPOCH=$(_current_epoch)" >! ${ZSH_CACHE_DIR}/.zsh-update
|
||||
#if user has ~/.zhs-update move it to ${ZSH_CACHE_DIR}/.zsh-update
|
||||
if [ -f ~/.zsh-update ] && [ ! -f ${ZSH_CACHE_DIR}/.zsh-update ]; then
|
||||
mv ~/.zsh-update ${ZSH_CACHE_DIR}/.zsh-update
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
function _upgrade_zsh() {
|
||||
env ZSH=$ZSH sh $ZSH/tools/upgrade.sh
|
||||
# update the zsh file
|
||||
_update_zsh_update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue