From 063aa5933456fd466fefe1ddfe68e3ab1c003fff Mon Sep 17 00:00:00 2001 From: Jason <51514842+jnines@users.noreply.github.com> Date: Wed, 28 Sep 2022 07:32:08 -0500 Subject: [PATCH] Pathing for diffconfig in prepare (#605) * Pathing for diffconfig in prepare * Pathing for diffconfig in prepare Arch specific --- linux-tkg-config/prepare | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index d6acb49..2e07440 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -1762,8 +1762,13 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\r if [ -z "$_diffconfig_name" ]; then echo 'No file name given, not generating config fragment.' else ( - prev_pwd="${PWD:-$(pwd)}" - cd "$_where" + if [ "$_distro" = "Arch" ] || [ "$_ispkgbuild" = "true" ]; then + prev_pwd="${PWD:-$(pwd)}/linux-src-git" + cd "$_where" || exit + else + prev_pwd="${PWD:-$(pwd)}" + cd "$_where" || exit + fi "${prev_pwd}/scripts/diffconfig" -m "${prev_pwd}/.config.orig" "${prev_pwd}/.config" > "$_diffconfig_name" ) fi fi