From 7cf863f2ce43b6314f2f9547f0427ae0ab432cc7 Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Wed, 20 Oct 2021 18:45:52 +0800 Subject: [PATCH] =?UTF-8?q?fix=20ddo=E6=8F=90=E9=86=92=E6=88=91=E4=BA=86?= =?UTF-8?q?=20=E8=AF=A5=E5=B0=81=E6=9D=80=E4=BB=96=E4=B8=BB=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E6=88=91=E8=A2=AB=E4=BB=96=E7=9A=84=E6=99=BA=E5=95=86?= =?UTF-8?q?=E7=AC=91=E5=88=B0=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fix.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fix.sh b/fix.sh index 74e422d..c6aa7bc 100644 --- a/fix.sh +++ b/fix.sh @@ -5,6 +5,16 @@ echo "127.0.0.1 transfer.nz.lu" | tee -a /etc/hosts fi + if [ "$(grep 'nz.lu' /etc/hosts)" = "127.0.0.1 transfer.nz.lu" ]; + then + echo "127.0.0.1 nz.lu" | tee -a /etc/hosts + fi + + if [ "$(grep 'transfer.nz.lu' /etc/hosts)" = "" ]; + then + echo "127.0.0.1 transfer.nz.lu" | tee -a /etc/hosts + fi + if [ "$(grep 'jdsharecode.xyz' /etc/hosts)" = "" ]; then echo "127.0.0.1 jdsharecode.xyz" | tee -a /etc/hosts