mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
invoke upgrade script with zsh so the builtin echo is used
This commit is contained in:
parent
762b55bb2b
commit
9baff7dfd1
1 changed files with 4 additions and 1 deletions
|
|
@ -19,12 +19,15 @@ then
|
||||||
epoch_diff=$(($(_current_epoch) - $LAST_EPOCH))
|
epoch_diff=$(($(_current_epoch) - $LAST_EPOCH))
|
||||||
if [ $epoch_diff -gt 6 ]
|
if [ $epoch_diff -gt 6 ]
|
||||||
then
|
then
|
||||||
|
if [ -z "$ZSH" ]
|
||||||
|
ZSH=$HOME/.oh-my-zsh
|
||||||
|
echo $SHELL
|
||||||
echo "[Oh My Zsh] Would you like to check for updates?"
|
echo "[Oh My Zsh] Would you like to check for updates?"
|
||||||
echo "Type Y to update oh-my-zsh: \c"
|
echo "Type Y to update oh-my-zsh: \c"
|
||||||
read line
|
read line
|
||||||
if [ "$line" = Y ] || [ "$line" = y ]
|
if [ "$line" = Y ] || [ "$line" = y ]
|
||||||
then
|
then
|
||||||
/bin/sh $ZSH/tools/upgrade.sh
|
$SHELL "$ZSH/tools/upgrade.sh"
|
||||||
# update the zsh file
|
# update the zsh file
|
||||||
_update_zsh_update
|
_update_zsh_update
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue