summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-10-31 23:14:24 +0100
committerMarc Cornellà <marc.cornella@live.com>2020-11-30 15:48:46 +0100
commit889cd7acf349f1cae81c07378986157b382f7f1d (patch)
tree4990a515004db37da7f1e89c40ea5b9b92af45ba /lib
parent05e2956dc61198d4767b96d97c5d10c93cedd6e3 (diff)
downloadzsh-889cd7acf349f1cae81c07378986157b382f7f1d.tar.gz
zsh-889cd7acf349f1cae81c07378986157b382f7f1d.tar.bz2
zsh-889cd7acf349f1cae81c07378986157b382f7f1d.zip
refactor(updater): switch to Zsh execution and fix git remote detection logic
Diffstat (limited to 'lib')
-rw-r--r--lib/cli.zsh2
-rw-r--r--lib/functions.zsh2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/cli.zsh b/lib/cli.zsh
index b1478a89f..30790bec7 100644
--- a/lib/cli.zsh
+++ b/lib/cli.zsh
@@ -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"
diff --git a/lib/functions.zsh b/lib/functions.zsh
index 15526cd5f..f6f34e851 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -14,7 +14,7 @@ function upgrade_oh_my_zsh() {
fi
# 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"