Fix triplet
This commit is contained in:
parent
c8b18c5597
commit
c7772d91fa
|
@ -37,10 +37,13 @@ while : ; do
|
|||
ENVWORDS="${ENVWORDS} $1_CPU $1_OS"
|
||||
STR=`eval "echo ${S}$1"`
|
||||
SPLIT_CPU="`echo "$STR" | cut -d - -f 1`"
|
||||
#SPLIT_OS="`echo "$STR" | awk -F - '{print $(NF-1)}'`"
|
||||
SPLIT_OS="`echo "$STR" | awk -F - '{
|
||||
if($1="unknown"){ if (NF<3) { print $2; } else { print $3; }
|
||||
} else { print $(NF-1); }
|
||||
if ($2=="unknown"){
|
||||
if (NF<3) { print $2; } else { print $3; }
|
||||
} else {
|
||||
if ($2=="linux") { print $2; } else
|
||||
if (NF<3) { print $2; } else { print $3; }
|
||||
}
|
||||
}'`"
|
||||
eval "$1_CPU=\"$SPLIT_CPU\""
|
||||
eval "$1_OS=\"$SPLIT_OS\""
|
||||
|
|
Loading…
Reference in New Issue