diff --git a/gen_compile.sh b/gen_compile.sh index 69eb414..60ed2a7 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -334,6 +334,8 @@ compile_kernel() { "kernelz-${KV}" fi else + local curdir=$(pwd) + cd ${KERNEL_OUTPUTDIR} cp "${tmp_kernel_binary}" "${TMPDIR}/kernel-${KNAME}-${ARCH}-${KV}${KAPPENDNAME}" || gen_die "Could not copy the kernel binary to ${TMPDIR}!" cp "System.map" "${TMPDIR}/System.map-${KNAME}-${ARCH}-${KV}${KAPPENDNAME}" || @@ -343,6 +345,7 @@ compile_kernel() { cp "${tmp_kernel_binary2}" "${TMPDIR}/kernelz-${KV}" || gen_die "Could not copy the kernelz binary to ${TMPDIR}!" fi + cd "${curdir}" fi }