mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-03 10:08:58 +00:00
Mode double brackets
This commit is contained in:
parent
1c6c35f861
commit
fe46dee194
1 changed files with 2 additions and 2 deletions
|
@ -243,9 +243,9 @@ gravity_DownloadBlocklistFromUrl() {
|
||||||
fi;;
|
fi;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "${blocked}" = true ]; then
|
if [[ "${blocked}" = true ]]; then
|
||||||
ip=$(dig "@${CONDITIONAL_FORWARDING_IP}" +short "${domain}")
|
ip=$(dig "@${CONDITIONAL_FORWARDING_IP}" +short "${domain}")
|
||||||
if [ $(echo "${url}" | awk -F '://' '{print $1}') = "https" ]; then
|
if [[ $(echo "${url}" | awk -F '://' '{print $1}') = "https" ]]; then
|
||||||
port=443;
|
port=443;
|
||||||
else port=80
|
else port=80
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue