From d1773cce27be910cf1d08762b4b839376df0b5f0 Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 23 Sep 2024 18:36:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85=E8=BD=AF?= =?UTF-8?q?=E4=BB=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menus/Software.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Menus/Software.sh b/Menus/Software.sh index 68b248c..b6e371f 100644 --- a/Menus/Software.sh +++ b/Menus/Software.sh @@ -34,11 +34,10 @@ soft_dick['curl']=0 soft_dick['sudo']=0 soft_dick['ssh']=0 soft_dick['zsh']=0 -soft_dick['Beautify-zsh']=1 +soft_dick['zsh-beautify']=1 soft_dick['docker']=1 soft_dick['x-cmd']=1 - echo "======一键安装常用软件======" for i in "${!soft_dick[@]}" ; do soft_number=$(( soft_number+1 )) @@ -53,7 +52,7 @@ if [[ -z $pick ]];then if [[ $i != 1 ]]; then pick="$pick $i" else - pick="$i" + pick="$i" fi done elif [[ ! $pick =~ [1-"${#soft_dick[@]}"\ ] ]];then @@ -63,7 +62,7 @@ fi for i in $pick ; do if [[ ${soft_dick[${soft_array[$i]}]} == 0 ]]; then - eval "$install_str $i" + eval "$install_str ${soft_dick{${soft_array[$i]}}}}" else soft_dick[${soft_array[$i]}]=2 fi @@ -120,7 +119,7 @@ if [[ ${soft_dick['docker']} == 2 ]];then fi -if [[ ${soft_dick['Beautify-zsh']} == 2 ]];then +if [[ ${soft_dick['zsh-beautify']} == 2 ]];then curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sed 's/read -r opt//g'| sed 's/exec zsh -l//g'| sh while [[ ! -d "$HOME/.oh-my-zsh" ]]; do sleep 3