Skip to content

Commit

Permalink
Check out the specified kernel branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Jan 21, 2022
1 parent 41fc6ef commit ab56402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recompile
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ download_kernel() {
if [[ "${auto_kernel}" == "true" && "${kernel_sub}" -gt "${local_makefile_sublevel}" ]]; then
# Pull the latest source code of the server
cd ${kernel_path}/${local_kernel_dirname}
git fetch --all && git reset --hard origin/${code_branch} && git pull && sync
git checkout ${code_branch} && git reset --hard origin/${code_branch} && git pull && sync
unset kernel_version
kernel_version="${local_makefile_version}.${local_makefile_patchlevel}.${kernel_sub}"
echo -e "${INFO} Synchronize the upstream source code, compile the kernel version [ ${kernel_version} ]."
Expand Down

0 comments on commit ab56402

Please sign in to comment.