From 1237b5e3b0962814403c64827b4e20667f0f0d9d Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Mon, 12 Nov 2018 15:00:14 +0800 Subject: [PATCH] Add double quotes to fix syntax errors --- xCAT/postscripts/xcatinstallpost | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT/postscripts/xcatinstallpost b/xCAT/postscripts/xcatinstallpost index 235c241d8..50e71ae00 100755 --- a/xCAT/postscripts/xcatinstallpost +++ b/xCAT/postscripts/xcatinstallpost @@ -24,8 +24,8 @@ SLI=$(awk 'BEGIN{srand(); printf("%d\n",rand()*10)}') sleep $SLI XCATINFOFILE=/opt/xcat/xcatinfo -MACADDR=`grep MACADDRESS= /xcatpost/mypostscript.post |awk -F = '{print $2}'|sed s/\'//g` -INSTALLNIC=`ip -o link|grep -i $MACADDR|awk '{print $2}'|sed s/://` +MACADDR=`grep MACADDRESS= /xcatpost/mypostscript.post | awk -F = '{ print $2 }'| sed "s/\'//g"` +INSTALLNIC=`ip -o link | grep -i "$MACADDR" | awk '{ print $2 }' | sed "s/://"` # the network between the node and MASTER might be not well configured and activated when running the PBS sometimes