diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 2e074402e..ebd1f31c0 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -1763,11 +1763,11 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\r echo 'No file name given, not generating config fragment.' else ( if [ "$_distro" = "Arch" ] || [ "$_ispkgbuild" = "true" ]; then - prev_pwd="${PWD:-$(pwd)}/linux-src-git" - cd "$_where" || exit + prev_pwd="${PWD:-$(pwd)}/linux-src-git" + cd "$_where" || exit else - prev_pwd="${PWD:-$(pwd)}" - cd "$_where" || exit + prev_pwd="${PWD:-$(pwd)}" + cd "$_where" || exit fi "${prev_pwd}/scripts/diffconfig" -m "${prev_pwd}/.config.orig" "${prev_pwd}/.config" > "$_diffconfig_name" ) fi