From e4fd8d0d448f44e1c37609b9e61743e02e7ccedd Mon Sep 17 00:00:00 2001 From: wanhebin Date: Mon, 25 Jan 2021 20:51:31 +0800 Subject: [PATCH] remove head.txt --- start.sh | 6 +++--- temp/head.txt | 0 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 temp/head.txt diff --git a/start.sh b/start.sh index bf86ec1..ac883af 100755 --- a/start.sh +++ b/start.sh @@ -29,11 +29,11 @@ Text1="配置文件config.yaml下载成功!" Text2="配置文件config.yaml下载失败,退出启动!" if_success $Text1 $Text2 -head -6 $Temp_Dir/clash.yaml > $Temp_Dir/head.txt +# sed -n '/^proxies:/,$p' $Temp_Dir/clash.yaml > $Temp_Dir/proxy.txt + # 合并形成新的config.yaml -cat $Temp_Dir/head.txt > $Temp_Dir/config.yaml -cat $Temp_Dir/templete_config.yaml >> $Temp_Dir/config.yaml +cat $Temp_Dir/templete_config.yaml > $Temp_Dir/config.yaml cat $Temp_Dir/proxy.txt >> $Temp_Dir/config.yaml \cp $Temp_Dir/config.yaml $Conf_Dir/ diff --git a/temp/head.txt b/temp/head.txt deleted file mode 100644 index e69de29..0000000