From b711bc9d4b53f3e5cc90d5508b31d1829646bc37 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Sat, 14 Jan 2023 17:50:13 +0100 Subject: [PATCH] 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 --- PKGBUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 8ddc817..14d7ca9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -80,7 +80,10 @@ prepare() { rm -rf $pkgdir # Nuke the entire pkg folder so it'll get regenerated clean on next build _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}" source "${_where}/current_env"