mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-23 11:40:25 +00:00
Remove the leading ^ from package group name (#5972)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user