fix: correct condition to check for oh-my-zsh installation before miniconda installation
This commit is contained in:
parent
3776b05bed
commit
f0bf112850
@ -75,7 +75,7 @@ configure_miniconda() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if confirm_action "要安装 miniconda 吗?" "N"; then
|
if confirm_action "要安装 miniconda 吗?" "N"; then
|
||||||
if [ -d ~/.oh-my-zsh ] && ! confirm_action "检测到未安装 oh-my-zsh,推荐稍后安装。是否继续安装 miniconda?" "N"; then
|
if [ ! -d ~/.oh-my-zsh ] && ! confirm_action "检测到未安装 oh-my-zsh,推荐稍后安装。是否继续安装 miniconda?" "N"; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
wget "https://repo.anaconda.com/miniconda/$INSTALLER" -O "$tempdir/miniconda.sh"
|
wget "https://repo.anaconda.com/miniconda/$INSTALLER" -O "$tempdir/miniconda.sh"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user