mirror of
https://github.com/lancachenet/monolithic
synced 2024-11-21 19:43:05 +00:00
Fixed incorrect passing of duplicates
This commit is contained in:
parent
00619cf6d2
commit
0a980bd03c
1 changed files with 2 additions and 6 deletions
|
@ -17,13 +17,9 @@ echo " default \$http_host;" >> $outputfile
|
|||
key=$(jq -r ".cache_domains[$entry].name" cache_domains.json)
|
||||
jq -r ".cache_domains[$entry].domain_files | to_entries[] | .key" cache_domains.json | while read fileid; do
|
||||
jq -r ".cache_domains[$entry].domain_files[$fileid]" cache_domains.json | while read filename; do
|
||||
echo "" >> $outputfile
|
||||
cat ${filename} | while read fileentry; do
|
||||
# Ignore comments
|
||||
case "$var" in
|
||||
\#*) continue ;;
|
||||
esac
|
||||
if grep -q "$fileentry" $outputfile; then
|
||||
echo $fileentry
|
||||
if grep -q "^$fileentry" $outputfile; then
|
||||
continue
|
||||
fi
|
||||
echo " ${fileentry} ${key};" >> $outputfile
|
||||
|
|
Loading…
Reference in a new issue