diff --git a/configure_user.sh b/configure_user.sh index 3269925..c37b26d 100755 --- a/configure_user.sh +++ b/configure_user.sh @@ -75,7 +75,7 @@ configure_miniconda() { fi 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 fi wget "https://repo.anaconda.com/miniconda/$INSTALLER" -O "$tempdir/miniconda.sh"