uklans / cache-domains

Domain Names required for LAN Content Cache DNS spoofing
MIT License
562 stars 521 forks source link

Error when running create-dnsmasq.sh #207

Open crkinard opened 2 years ago

crkinard commented 2 years ago

Trying to convert the CDN address text files to dnsmasq format.

But when running the create file I get this error.

./create-dnsmasq.sh: line 21: syntax error: unexpected redirection

Following instructions from here though I am not using piehole. Just my routers dnsmasq server. https://oct8l.gitlab.io/posts/2021/297/scripting-lancache-dns-updates-with-pi-hole/

kizmat commented 2 years ago

I fixed this by using ./create-dnsmasq.sh. You probably tried sh ./create-dnsmasq.sh

See this: https://stackoverflow.com/questions/2462317/bash-syntax-error-redirection-unexpected

Morpheus84h commented 1 year ago

parse error: Expected another key-value pair at line 9, column 2 thats that line:

out=$?

nightah commented 1 week ago

Is anybody still experiencing this problem?