clone: Remove unneeded vars

This commit is contained in:
tschettervictor
2025-02-03 12:51:52 -07:00
committed by GitHub
parent b76201e25c
commit ef6d7616ba

View File

@@ -108,12 +108,10 @@ if echo "${NEWNAME}" | grep -q "[.]"; then
fi
validate_ip() {
IPX_ADDR="ip4.addr"
IP6_MODE="disable"
ip6=$(echo "${IP}" | grep -E '^(([a-fA-F0-9:]+$)|([a-fA-F0-9:]+\/[0-9]{1,3}$))')
if [ -n "${ip6}" ]; then
info "Valid: (${ip6})."
IPX_ADDR="ip6.addr"
# shellcheck disable=SC2034
IP6_MODE="new"
else