mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-25 06:55:46 +01:00
network: Do not allow a 4th arg on --no-ip
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user