From 77908af189db5af24e63bb36bceba7a6c0c92f66 Mon Sep 17 00:00:00 2001 From: juewuy Date: Thu, 19 Jan 2023 22:19:33 +0800 Subject: [PATCH] =?UTF-8?q?v1.6.16b=20~=E6=A0=B8=E5=BF=83=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E6=8F=90=E7=A4=BA=E5=8F=8A=E6=B5=81=E7=A8=8B=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20~=E6=9C=AC=E6=9C=BA=E4=BB=A3=E7=90=86=E7=BB=86?= =?UTF-8?q?=E8=8A=82=E4=BC=98=E5=8C=96=20~=E4=BF=AE=E5=A4=8D=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=83=85=E5=86=B5=E4=B8=8B=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8F=B7=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 38feadb..46343c7 100644 --- a/install.sh +++ b/install.sh @@ -1,7 +1,8 @@ #! /bin/bash # Copyright (C) Juewuy -echo='echo -e' +type bash &>/dev/null && shtype=bash || shtype=sh +echo='echo -e' && [ -n "$(echo -e|grep e)" ] && echo=echo echo "***********************************************" echo "** 欢迎使用 **" @@ -61,7 +62,7 @@ gettar(){ error_down exit 1 else - source $clashdir/init.sh + $shtype $clashdir/init.sh fi fi }