mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
refactor(updater): switch to Zsh execution and fix git remote detection logic
This commit is contained in:
parent
05e2956dc6
commit
889cd7acf3
4 changed files with 112 additions and 100 deletions
|
|
@ -351,7 +351,7 @@ function _omz::theme::use {
|
|||
|
||||
function _omz::update {
|
||||
# Run update script
|
||||
env ZSH="$ZSH" sh "$ZSH/tools/upgrade.sh"
|
||||
env ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh"
|
||||
# Update last updated file
|
||||
zmodload zsh/datetime
|
||||
echo "LAST_EPOCH=$(( EPOCHSECONDS / 60 / 60 / 24 ))" >! "${ZSH_CACHE_DIR}/.zsh-update"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue