radare2: update patch with a more complete fix for SPLIT_OS.
This commit is contained in:
parent
444e644398
commit
b80f966fb7
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
||||||
STR=`eval "echo ${S}$1"`
|
STR=`eval "echo ${S}$1"`
|
||||||
SPLIT_CPU="`echo "$STR" | cut -d - -f 1`"
|
SPLIT_CPU="`echo "$STR" | cut -d - -f 1`"
|
||||||
-SPLIT_OS="`echo "$STR" | awk -F - '{if(NF==4){print $4}else{print $3}}'`"
|
-SPLIT_OS="`echo "$STR" | awk -F - '{if(NF==4){print $4}else{print $3}}'`"
|
||||||
+SPLIT_OS="`echo "$STR" | awk -F - '{if(NF==4){print $4}else{print $2}}'`"
|
+SPLIT_OS="`echo "$STR" | awk -F - '{print $(NF-1)}'`"
|
||||||
eval "$1_CPU=\"$SPLIT_CPU\""
|
eval "$1_CPU=\"$SPLIT_CPU\""
|
||||||
eval "$1_OS=\"$SPLIT_OS\""
|
eval "$1_OS=\"$SPLIT_OS\""
|
||||||
shift
|
shift
|
||||||
|
|
Loading…
Reference in a new issue