This commit is contained in:
GH Action - Upstream Sync 2023-03-30 07:12:31 +00:00
commit 6e2b2b5b3b

View File

@ -52,10 +52,12 @@ while read -r entry; do
fi
parsed=$(echo ${fileentry} | sed -e "s/^\*\.//")
for i in ${cacheip}; do
if grep -qx "address=/${parsed}/${i}" "${outputfile}"; then
continue
fi
if ! grep -qx "address=/${parsed}/${i}" "${outputfile}"; then
echo "address=/${parsed}/${i}" >> "${outputfile}"
fi
if ! grep -qx "local=/${parsed}/" "${outputfile}"; then
echo "local=/${parsed}/" >> "${outputfile}"
fi
done
done <<< $(cat ${basedir}/${filename} | sort);
done <<< $(jq -r ".cache_domains[${entry}].domain_files[$fileid]" ${path})