diff options
Diffstat (limited to 'util/flash_fp_mcu')
-rw-r--r-- | util/flash_fp_mcu | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/util/flash_fp_mcu b/util/flash_fp_mcu index 8a01a074df..e383186a9f 100644 --- a/util/flash_fp_mcu +++ b/util/flash_fp_mcu @@ -231,13 +231,17 @@ match_kernel_regex() { # * platform_base_name "hatch-arc-r" --> "hatch" # * platform_base_name "hatch-borealis" --> "hatch" # * platform_base_name "hatch" --> "hatch" +# * platform_base_name "strongbad64" --> "strongbad" # # Usage: platform_base_name <platform_name> platform_base_name() { local platform_name="$1" # We remove any suffix starting at the first '-'. - echo "${platform_name%%-*}" + local base_name="${platform_name%%-*}" + + # Remove any numbers from the base name. + echo "${base_name//[0-9]/}" } get_default_fw() { |