From 795cacecf3c26fca5329b60afc66f2a0fa39822d Mon Sep 17 00:00:00 2001 From: William Wernert Date: Wed, 9 Dec 2020 10:06:14 -0500 Subject: [PATCH] [fix] Fix cut command options --- setup/so-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index 83fed9c66..d143a79ff 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1771,7 +1771,7 @@ set_network_dev_status_list() { set_main_ip() { MAINIP=$(ip route get 1 | awk '{print $7;exit}') - MNIC_IP=$(ip a s "$MNIC" | grep -oE 'inet [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | cut -d' ' -f) + MNIC_IP=$(ip a s "$MNIC" | grep -oE 'inet [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | cut -d' ' -f2) if [[ $MAINIP != $MNIC_IP ]]; then read -r -d '' message <<- EOM