v1.1.7-test
~新增自定义本机host地址的功能(7-6-8) ~屏蔽核心自带的节点保存功能(会占用更多空间) ~修复部分情况下检测本机host失败的bug ~修复部分情况下导入配置文件失败的bug ~修复Debian等默认使用dash的系统下运行出错的bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user