From 37a3712b80b18787281db7dbcf501d8f4ce63723 Mon Sep 17 00:00:00 2001 From: Fazilov Kamil Date: Fri, 4 Apr 2025 16:11:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BD=D0=B5=D1=81=20=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BA=D0=B8=20=D0=B2=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF?= =?UTF-8?q?=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- getconfig.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/getconfig.sh b/getconfig.sh index 92d33be..197f1b4 100644 --- a/getconfig.sh +++ b/getconfig.sh @@ -22,8 +22,8 @@ cat > /etc/init.d/getdomains << EOF START=99 start () { - VPN_NOT_WOKRING=$(sing-box -c /etc/sing-box/config.json tools fetch instagram.com 2>&1 | grep FATAL) - if [ -z "${VPN_NOT_WOKRING}" ] + VPN_NOT_WOKRING=\$(sing-box -c /etc/sing-box/config.json tools fetch instagram.com 2>&1 | grep FATAL) + if [ -z "\${VPN_NOT_WOKRING}" ] then # WITHOUT YOUTUBE DOMAINS=https://raw.githubusercontent.com/AnotherProksY/allow-domains-no-youtube/main/Russia/inside-dnsmasq-nfset.lst @@ -35,11 +35,11 @@ start () { count=0 while true; do if curl -m 3 github.com; then - curl -f $DOMAINS --output /tmp/dnsmasq.d/domains.lst + curl -f \$DOMAINS --output /tmp/dnsmasq.d/domains.lst break else - echo "GitHub is not available. Check the internet availability [$count]" - count=$((count+1)) + echo "GitHub is not available. Check the internet availability [\$count]" + count=\$((count+1)) fi done