feat(脚本): 删除卸载acme

pull/534/merge
mack-a 2020-08-18 17:45:11 +08:00
parent 280af6bd06
commit ba3168099e
1 changed files with 7 additions and 7 deletions

View File

@ -137,13 +137,13 @@ installTools(){
echo echo
fi fi
progressTools "yellow" "卸载acme.sh--->" 4 # progressTools "yellow" "卸载acme.sh--->" 4
rm -rf ~/.acme.sh > /dev/null # rm -rf ~/.acme.sh > /dev/null
if [[ ! -z `cat /root/.bashrc|grep -n acme` ]] # if [[ ! -z `cat /root/.bashrc|grep -n acme` ]]
then # then
acmeBashrcLine=`cat /root/.bashrc|grep -n acme|awk -F "[:]" '{print $1}'|head -1` # acmeBashrcLine=`cat /root/.bashrc|grep -n acme|awk -F "[:]" '{print $1}'|head -1`
sed -i "${acmeBashrcLine}d" /root/.bashrc # sed -i "${acmeBashrcLine}d" /root/.bashrc
fi # fi
progressTools "yellow" "检查、安装更新【新机器会很慢,耐心等待】--->" 5 progressTools "yellow" "检查、安装更新【新机器会很慢,耐心等待】--->" 5