Skip to content

Commit

Permalink
chore: add debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherinox committed Oct 30, 2024
1 parent 444d014 commit 856d1d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1,016 deletions.
12 changes: 8 additions & 4 deletions .github/scripts/bl-geolite2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,10 @@ function GENERATE_IPv4
SET_NAME="${CONTINENT_CODE}.${APP_TARGET_EXT_TMP}"
IPSET_FILE="${APP_DIR_IPV4}/${SET_NAME}"

echo -e " 🌎 Added continent ${CONTINENT_CODE} to ${IPSET_FILE}"
echo -e "+ Item missing country, assigning as Continent | ID ${ID} - ${LINE[2]} | Subnet ${SUBNET} | Continent ${CONTINENT_CODE} Country ${COUNTRY_CODE} | File ${IPSET_FILE} | NAME ${SET_NAME}" >> "${APP_THIS_FILE}-ipv4-missing.log"
if [[ $APP_DEBUG == "true" ]]; then
echo -e " 🌎 Added continent ${CONTINENT_CODE} to ${IPSET_FILE}"
echo -e "+ Item missing country, assigning as Continent | ID ${ID} - ${LINE[2]} | Subnet ${SUBNET} | Continent ${CONTINENT_CODE} Country ${COUNTRY_CODE} | File ${IPSET_FILE} | NAME ${SET_NAME}" >> "${APP_THIS_FILE}-ipv4-missing.log"
fi
fi

# #
Expand Down Expand Up @@ -881,8 +883,10 @@ function GENERATE_IPv6
SET_NAME="${CONTINENT_CODE}.${APP_TARGET_EXT_TMP}"
IPSET_FILE="${APP_DIR_IPV4}/${SET_NAME}"

echo -e " 🌎 Added continent ${CONTINENT_CODE} to ${IPSET_FILE}"
echo -e "+ Item missing country, assigning as Continent | ID ${ID} - ${LINE[2]} | Subnet ${SUBNET} | Continent ${CONTINENT_CODE} Country ${COUNTRY_CODE} | File ${IPSET_FILE} | NAME ${SET_NAME}" >> "${APP_THIS_FILE}-ipv4-missing.log"
if [[ $APP_DEBUG == "true" ]]; then
echo -e " 🌎 Added continent ${CONTINENT_CODE} to ${IPSET_FILE}"
echo -e "+ Item missing country, assigning as Continent | ID ${ID} - ${LINE[2]} | Subnet ${SUBNET} | Continent ${CONTINENT_CODE} Country ${COUNTRY_CODE} | File ${IPSET_FILE} | NAME ${SET_NAME}" >> "${APP_THIS_FILE}-ipv4-missing.log"
fi
fi

# #
Expand Down
Loading

0 comments on commit 856d1d5

Please sign in to comment.