Skip to content

Possible syntax error in kernel_module_config.functions.sh #100

@deric

Description

@deric
/root/.oldroot/nfs/install/kernel_module_config.functions.sh: line 36: syntax error near unexpected token `}'
/root/.oldroot/nfs/install/kernel_module_config.functions.sh: line 36: `    { [[ "$IAM" == debian ]] && ((IMG_VERSION < 1300)) } ||'

here's the relevant part of code:

  [[ "$IAM" == ubuntu ]] &&
    ((IMG_VERSION == 2004)) &&
    hwe_image &&
    [[ "$(board_vendor)" == 'ASUSTeK COMPUTER INC.' ]] &&
    [[ "$(board_name)" == 'PRIME B760M-A D4' ]] &&
    return 0
  {
    { [[ "$IAM" == debian ]] && ((IMG_VERSION < 1300)) } ||
    { [[ "$IAM" == ubuntu ]] && ((IMG_VERSION < 2204)) }
  } &&
    [[ "$(board_vendor)" == 'Gigabyte Technology Co., Ltd.' ]] &&
    has_b360hd3p_board &&
    return 0

which was introduced in 6998e11.

I guess the curly brackets should be removed, e.g.:

     [[ "$IAM" == debian  && ((IMG_VERSION < 1300)) ]] ||
     [[ "$IAM" == ubuntu && ((IMG_VERSION < 2204)) ]] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions