v1.1.7-test

~新增自定义本机host地址的功能(7-6-8)
~屏蔽核心自带的节点保存功能(会占用更多空间)
~修复部分情况下检测本机host失败的bug
~修复部分情况下导入配置文件失败的bug
~修复Debian等默认使用dash的系统下运行出错的bug
This commit is contained in:
juewuy
2021-03-19 22:03:09 +08:00
parent f6eb1577af
commit 7acac3c6e9
4 changed files with 12 additions and 7 deletions

View File

@@ -86,7 +86,7 @@ gettar(){
fi
#修饰文件及版本号
shtype=sh && [ -n "$(ls -l /bin/sh|grep -o dash)" ] && shtype=bash
sed -i "s%#!/bin/sh%#!/bin/$shtype%g" $clashdir/start.sh
sed -i "s|/bin/sh|/bin/$shtype|" $clashdir/start.sh
chmod 777 $clashdir/start.sh
sed -i '/versionsh_l=*/'d $clashdir/mark
echo versionsh_l=$release_new >> $clashdir/mark