From 79871d75783ded46edc4e833bd4f71092a417119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=E1=B4=8F=C9=B4=C9=A2=20Jie?= Date: Mon, 28 Jan 2019 16:43:23 +0800 Subject: [PATCH] Remove the leading ^ from package group name (#5972) --- xCAT/postscripts/ospkgs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT/postscripts/ospkgs b/xCAT/postscripts/ospkgs index ea5e414e9..dfe18b891 100755 --- a/xCAT/postscripts/ospkgs +++ b/xCAT/postscripts/ospkgs @@ -402,6 +402,8 @@ do tmp=${x#@} #remove leading and trailing spaces tmp=`echo $tmp |sed 's/^ *//;s/ *$//'` + #remove the leading ^ + [ "^" = "${tmp:0:1}" ] && tmp="${tmp:1}" #if there are spaces in the middle of the name, quote it pos=`expr index "$tmp" "\ "` if [ $pos -gt 0 ]; then