From f0bf112850657a1e3fcd62b50773854e890f56ed Mon Sep 17 00:00:00 2001 From: Konano Date: Fri, 29 Aug 2025 18:27:11 +0800 Subject: [PATCH] fix: correct condition to check for oh-my-zsh installation before miniconda installation --- configure_user.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"