调整安装脚本

This commit is contained in:
juewuy
2020-09-19 00:17:34 +08:00
parent 6434abcfdd
commit c702520e97

View File

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