radare2: update patch with a more complete fix for SPLIT_OS.

This commit is contained in:
Juan RP 2013-11-11 12:01:51 +01:00
parent 444e644398
commit b80f966fb7

View file

@ -16,7 +16,7 @@
STR=`eval "echo ${S}$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 $2}}'`"
+SPLIT_OS="`echo "$STR" | awk -F - '{print $(NF-1)}'`"
eval "$1_CPU=\"$SPLIT_CPU\""
eval "$1_OS=\"$SPLIT_OS\""
shift