From 933c33606834fec6a259fbba858bab2769d61f3e Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 30 Jan 2024 03:26:57 +0100 Subject: [PATCH] fix: Condition (#405) --- src/network.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/network.sh b/src/network.sh index 0078ef9..4a2b1f2 100644 --- a/src/network.sh +++ b/src/network.sh @@ -279,10 +279,8 @@ fi if [[ "$DHCP" == [Yy1]* ]]; then - if [[ "$GATEWAY" == "172."* ]]; then - if [[ "$DEBUG" != [Yy1]* ]]; then - error "You can only enable DHCP while the container is on a macvlan network!" && exit 26 - fi + if [[ "$GATEWAY" == "172."* ]] && [[ "$DEBUG" != [Yy1]* ]]; then + error "You can only enable DHCP while the container is on a macvlan network!" && exit 26 fi # Configuration for DHCP IP