2
0
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:
Gᴏɴɢ Jie
2019-01-28 16:43:23 +08:00
committed by yangsong
parent ec56baf36f
commit 79871d7578

View File

@@ -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