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:
5
PKGBUILD
5
PKGBUILD
@@ -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"
|
||||||
|
Reference in New Issue
Block a user