Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in kernel_module_config.functions.sh #100

Open
deric opened this issue May 3, 2024 · 0 comments
Open

Syntax error in kernel_module_config.functions.sh #100

deric opened this issue May 3, 2024 · 0 comments

Comments

@deric
Copy link

deric commented May 3, 2024

/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)) ]] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant