mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-05 20:24:09 +01:00
clone: Remove unneeded vars
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user