mirror of
				https://github.com/uklans/cache-domains
				synced 2025-11-04 13:38:53 +01:00 
			
		
		
		
	Merge branch 'master' of https://github.com/uklans/cache-domains
This commit is contained in:
		
						commit
						6e2b2b5b3b
					
				@ -52,10 +52,12 @@ while read -r entry; do
 | 
				
			|||||||
                                fi
 | 
					                                fi
 | 
				
			||||||
                                parsed=$(echo ${fileentry} | sed -e "s/^\*\.//")
 | 
					                                parsed=$(echo ${fileentry} | sed -e "s/^\*\.//")
 | 
				
			||||||
                                for i in ${cacheip}; do
 | 
					                                for i in ${cacheip}; do
 | 
				
			||||||
                                        if grep -qx "address=/${parsed}/${i}" "${outputfile}"; then
 | 
					                                        if ! grep -qx "address=/${parsed}/${i}" "${outputfile}"; then
 | 
				
			||||||
                                                continue
 | 
					                                                echo "address=/${parsed}/${i}" >> "${outputfile}"
 | 
				
			||||||
 | 
					                                        fi
 | 
				
			||||||
 | 
					                                        if ! grep -qx "local=/${parsed}/" "${outputfile}"; then
 | 
				
			||||||
 | 
					                                                echo "local=/${parsed}/" >> "${outputfile}"
 | 
				
			||||||
                                        fi
 | 
					                                        fi
 | 
				
			||||||
                                        echo "address=/${parsed}/${i}" >> "${outputfile}"
 | 
					 | 
				
			||||||
                                done
 | 
					                                done
 | 
				
			||||||
                        done <<< $(cat ${basedir}/${filename} | sort);
 | 
					                        done <<< $(cat ${basedir}/${filename} | sort);
 | 
				
			||||||
                done <<< $(jq -r ".cache_domains[${entry}].domain_files[$fileid]" ${path})
 | 
					                done <<< $(jq -r ".cache_domains[${entry}].domain_files[$fileid]" ${path})
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user