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