~修复部分设备因iptables版本过低导致ipv6dns劫持失效的问题
~修复安装脚本始终解压失败的bug
This commit is contained in:
juewuy
2023-03-19 09:42:45 +08:00
parent d0918f170c
commit 0d8c403752
6 changed files with 7 additions and 8 deletions

View File

@@ -55,15 +55,14 @@ gettar(){
echo -----------------------------------------------
echo 开始解压文件!
mkdir -p $clashdir > /dev/null
tar -zxf '/tmp/ShellClash.tar.gz' -C $clashdir/
[ $? -ne 0 ] && tar -zxf --no-same-owner '/tmp/ShellClash.tar.gz' -C $clashdir/
if [ $? -ne 0 ];then
tar -zxf '/tmp/ShellClash.tar.gz' -C $clashdir/ || tar -zxf --no-same-owner '/tmp/ShellClash.tar.gz' -C $clashdir/
if [ -f $clashdir/init.sh ];then
source $clashdir/init.sh >/dev/null
else
rm -rf /tmp/ShellClash.tar.gz
$echo "\033[33m文件解压失败\033[0m"
error_down
exit 1
else
source $clashdir/init.sh >/dev/null
fi
fi
}