fix: correct condition to check for oh-my-zsh installation before miniconda installation

This commit is contained in:
Konano 2025-08-29 18:27:11 +08:00
parent 3776b05bed
commit f0bf112850
Signed by: Nano
GPG Key ID: 93686B78EE43A65A

View File

@ -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"