From 4d7e6656959ed8dd3605908f4f8f515ae9ffb2e7 Mon Sep 17 00:00:00 2001 From: vitaminx <65588810+vitaminx@users.noreply.github.com> Date: Wed, 1 Jul 2020 20:25:43 +0800 Subject: [PATCH] Update gdutilscsinstall.sh --- gdutilscsinstall.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gdutilscsinstall.sh b/gdutilscsinstall.sh index c0c0d1c..14c7005 100644 --- a/gdutilscsinstall.sh +++ b/gdutilscsinstall.sh @@ -23,10 +23,10 @@ if [ -f "/etc/redhat-release" ];then if [[ `cat /etc/redhat-release` =~ "CentOS" ]];then os="CentOS" fi -elif [ "$aNAME"=~"Debian" -o "$bNAME"=~"Debian" -o "$cNAME"=~"Debian" ]; then os="Debian" -elif [ "$aNAME"=~"Ubuntu" -o "$bNAME"=~"Ubuntu" -o "$cNAME"=~"Ubuntu" ]; then os="Debian" -elif [ "$aNAME"=~"CentOS" -o "$bNAME"=~"CentOS" -o "$cNAME"=~"CentOS" ]; then os="CentOS" -elif [ "$aNAME"=~"Darwin" -o "$bNAME"=~"Darwin" -o "$cNAME"=~"Darwin" ]; then os="mac" +elif [ "$aNAME"=~"Debian" -o "$bNAME"=~"Debian" -o "$cNAME"=~"Debian" ];then os="Debian" +elif [ "$aNAME"=~"Ubuntu" -o "$bNAME"=~"Ubuntu" -o "$cNAME"=~"Ubuntu" ];then os="Debian" +elif [ "$aNAME"=~"CentOS" -o "$bNAME"=~"CentOS" -o "$cNAME"=~"CentOS" ];then os="CentOS" +elif [ "$aNAME"=~"Darwin" -o "$bNAME"=~"Darwin" -o "$cNAME"=~"Darwin" ];then os="mac" else os="$bNAME" fi @@ -110,7 +110,7 @@ echo -e "\033[1;32m★★★ 恭喜您!gdutils项目“TD查询转存”部分 echo cd ~ -rm -f gdutilsos.sh +rm -f gdutilscs.sh ###########################gdutils功能建议################################## # 本部分是对gdutils项目的建议,因为我主要用的是查询功能所以以下建议只涉及查询功能