Skip to content

Commit

Permalink
Fix error in specifying kernel using [-a false]
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Jan 31, 2025
1 parent 4e4bf47 commit cf15ef3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions remake
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ init_var() {
stable_kernel=(${2})
dev_kernel=(${2})
beta_kernel=(${2})
specific_kernel=(${2})
IFS="${oldIFS}"
shift
else
Expand Down Expand Up @@ -328,6 +329,15 @@ check_data() {
fi
fi

# If auto_kernel is false, use the value from -k parameter
if [[ "${auto_kernel}" != "true" ]]; then
if [[ "${#specific_kernel[@]}" -eq 0 ]]; then
error_msg "Plase use the -k parameter to specify the kernel version."
else
value="${specific_kernel[@]}"
fi
fi

# Merge the same key values
if [[ -n "${tags_list[${key}]}" ]]; then
tags_list[${key}]+=" ${value}"
Expand Down

0 comments on commit cf15ef3

Please sign in to comment.