Mode double brackets

This commit is contained in:
Gusher123 2018-08-12 02:06:32 +02:00 committed by GitHub
parent 1c6c35f861
commit fe46dee194
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -243,9 +243,9 @@ gravity_DownloadBlocklistFromUrl() {
fi;;
esac
if [ "${blocked}" = true ]; then
if [[ "${blocked}" = true ]]; then
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;
else port=80
fi