From 3d4a4e8b6a89967b3c15b255eff666d9f121a67c Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Sat, 2 Dec 2017 17:52:09 -0800 Subject: [PATCH] Moved another function, move along, nothing to see here... --- inxi | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/inxi b/inxi index 8f32dc5..dcf5594 100755 --- a/inxi +++ b/inxi @@ -9546,17 +9546,6 @@ get_partition_dev_data() eval $LOGFE } -get_patch_version_string() -{ - SELF_PATCH=${SELF_PATCH##*[0]} # strip leading zero(s) - - if [[ -n $SELF_PATCH ]];then - SELF_PATCH="-$SELF_PATCH" - # for cases where it was for example: 00-bsd cleaned to --bsd trim out one - - SELF_PATCH="${SELF_PATCH/--/-}" - fi -} - # packs standard card arrays using the pciconf stuff # args: $1 - audio/network/display - matches first item in A_PCICONF_DATA arrays get_pciconf_card_data() @@ -12529,6 +12518,17 @@ get_module_version_number() eval $LOGFE } +get_patch_version_string() +{ + SELF_PATCH=${SELF_PATCH##*[0]} # strip leading zero(s) + + if [[ -n $SELF_PATCH ]];then + SELF_PATCH="-$SELF_PATCH" + # for cases where it was for example: 00-bsd cleaned to --bsd trim out one - + SELF_PATCH="${SELF_PATCH/--/-}" + fi +} + # note: gawk doesn't support white spaces in search string, gave errors, so use [[:space:]] instead # args: $1 - desktop/app command for --version; $2 - search string; $3 - gawk print number get_program_version()