From d4fef44634f39ff6582fd0d0e277cea02e1b8e80 Mon Sep 17 00:00:00 2001 From: Alex Richert Date: Tue, 28 May 2024 11:54:45 -0700 Subject: [PATCH] fix new rc logic --- xCAT/postscripts/nicutils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/nicutils.sh b/xCAT/postscripts/nicutils.sh index fdb83091b5..b3d6b3596e 100755 --- a/xCAT/postscripts/nicutils.sh +++ b/xCAT/postscripts/nicutils.sh @@ -1832,7 +1832,7 @@ function add_extra_params_nmcli { # For RHEL 9, use nmcli directly, otherwise use ifcfg scheme. if [[ "$OSVER" =~ rhels9 ]]; then nmcli con modify "$con_name" "$name" "$value" - return $? + rc+=$? else grep $name $str_conf_file >/dev/null 2>/dev/null if [ $? -eq 0 ]; then