Remove redundant code.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2020-02-21 22:28:53 +01:00
parent 3c09cd4a3a
commit 050e2963c7
No known key found for this signature in database
GPG key ID: FB60471F0575164A

View file

@ -404,16 +404,6 @@ gravity_DownloadBlocklists() {
fi fi
done <<< "${output}" done <<< "${output}"
echo "" echo ""
local file line
while IFS= read -r line; do
warning="$(grep -oh "^[^:]*:[0-9]*" <<< "${line}")"
file="${warning%:*}"
lineno="${warning#*:}"
if [[ -n "${file}" && -n "${lineno}" ]]; then
echo -n "Line contains: "
awk "NR==${lineno}" < ${file}
fi
done <<< "${output}"
fi fi
rm "${target}" > /dev/null 2>&1 || \ rm "${target}" > /dev/null 2>&1 || \