Always nuke remnant customization.cfg

There is a small windows where the exit cleanup won't be triggered and people then think everything is broken
This commit is contained in:
Tk-Glitch
2023-01-14 17:50:13 +01:00
parent 27a63d3151
commit b711bc9d4b

View File

@@ -80,7 +80,10 @@ prepare() {
rm -rf $pkgdir # Nuke the entire pkg folder so it'll get regenerated clean on next build rm -rf $pkgdir # Nuke the entire pkg folder so it'll get regenerated clean on next build
_define_kernel_abs_paths _define_kernel_abs_paths
ln -s "${_where}/customization.cfg" "${srcdir}" # workaround if [ -e "${srcdir}/customization.cfg" ]; then
msg2 "Nuking remnant customization.cfg symlink" && rm -rf "${srcdir}/customization.cfg"
fi
ln -s "${_where}/customization.cfg" "${srcdir}"
ln -s "${_kernel_work_folder_abs}" "${srcdir}" ln -s "${_kernel_work_folder_abs}" "${srcdir}"
source "${_where}/current_env" source "${_where}/current_env"