network: Do not allow a 4th arg on --no-ip

This commit is contained in:
tschettervictor
2025-03-10 17:22:04 -06:00
committed by GitHub
parent bd88d7fcc6
commit ebb290e4fb

View File

@@ -124,8 +124,10 @@ ACTION="${2}"
INTERFACE="${3}"
if [ "${NO_IP}" -eq 0 ]; then
IP="${4}"
else
elif [ "${NO_IP}" -eq 1] && [ -z "${4}" ]; then
IP=""
else
usage
fi
if [ "${ACTION}" = "add" ]; then