meta-fii: meta-kudo: Modify Hex to Dec conversion
Fix an issue where the SubMajor version was not converted
correctly from Hex to Dec.
Signed-off-by: Ashwin Murali <ashwin.murali@fii-na.com>
Change-Id: I38d9d7e93652696b9674a8719d751325160b4f13
diff --git a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh
index b8e7824..d8b92b5 100644
--- a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh
+++ b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh
@@ -101,8 +101,8 @@
MajorVersion=$(( 16#${MajorVersion%.*}))
#Save SubMajor Version valeu between . and - ".XX-" then convert Hex to Decimal
- SubMajorVersion=${StringVersion#*.}
- SubMajorVersion=$(( 16#${SubMajorVersion%-*}))
+ SubMajorVersion=${StringVersion##*.}
+ SubMajorVersion=$(( 16#${SubMajorVersion%%-*}))
#Save Minor Version value between - and - "-XX-" then convert Hex to Decimal
MinorVersion=${StringVersion#*-}