mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Remove redundant code.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
3c09cd4a3a
commit
050e2963c7
1 changed files with 0 additions and 10 deletions
10
gravity.sh
10
gravity.sh
|
@ -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 || \
|
||||||
|
|
Loading…
Reference in a new issue