From 8eb20707c7eb9b638283b8c10ae3fd64678008f0 Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Wed, 20 Oct 2021 16:39:34 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=A2=9E=E5=8A=A0=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E5=8A=A9=E5=8A=9B=E6=B1=A0=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fix.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 fix.sh diff --git a/fix.sh b/fix.sh new file mode 100644 index 0000000..b0bf7f6 --- /dev/null +++ b/fix.sh @@ -0,0 +1,24 @@ +#!/bin/bash + + if [ "$(grep 'transfer.nz.lu' /etc/hosts)" = "" ]; + then + echo "127.0.0.1 transfer.nz.lu" | sudo tee -a /etc/hosts + fi + + if [ "$(grep 'jdsharecode.xyz' /etc/hosts)" = "" ]; + then + echo "127.0.0.1 jdsharecode.xyz" | sudo tee -a /etc/hosts + fi + + if [ "$(grep 'helpu.cf' /etc/hosts)" = "" ]; + then + echo "127.0.0.1 helpu.cf" | sudo tee -a /etc/hosts + fi + +#result=$(grep 'smiek.tk' /etc/hosts) +# if [ "$reusult" = "" ] +# then +#$ echo "127.0.0.1 smiek.tk" | sudo tee -a /etc/hosts +# fi +# +