diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILD index 4d4a297b..35c75dd7 100644 --- a/linux-cachyos-bore/PKGBUILD +++ b/linux-cachyos-bore/PKGBUILD @@ -523,7 +523,8 @@ prepare() { ### Save configuration for later reuse echo "Save configuration for later reuse..." - cat .config > "${srcdir}/../config-${pkgver}-${pkgrel}${pkgbase#linux}" + local basedir="$(dirname "$(readlink "${srcdir}/config")")" + cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}" if [ -n "$_build_nvidia" ]; then cd "${srcdir}" diff --git a/linux-cachyos-deckify/PKGBUILD b/linux-cachyos-deckify/PKGBUILD index dc290ffb..31d8aeb6 100644 --- a/linux-cachyos-deckify/PKGBUILD +++ b/linux-cachyos-deckify/PKGBUILD @@ -526,7 +526,8 @@ prepare() { ### Save configuration for later reuse echo "Save configuration for later reuse..." - cat .config > "${srcdir}/../config-${pkgver}-${pkgrel}${pkgbase#linux}" + local basedir="$(dirname "$(readlink "${srcdir}/config")")" + cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}" if [ -n "$_build_nvidia" ]; then cd "${srcdir}" diff --git a/linux-cachyos-echo/PKGBUILD b/linux-cachyos-echo/PKGBUILD index 0b74e844..881ad95c 100644 --- a/linux-cachyos-echo/PKGBUILD +++ b/linux-cachyos-echo/PKGBUILD @@ -523,7 +523,8 @@ prepare() { ### Save configuration for later reuse echo "Save configuration for later reuse..." - cat .config > "${srcdir}/../config-${pkgver}-${pkgrel}${pkgbase#linux}" + local basedir="$(dirname "$(readlink "${srcdir}/config")")" + cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}" if [ -n "$_build_nvidia" ]; then cd "${srcdir}" diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILD index 0cf8dea8..23a87970 100644 --- a/linux-cachyos-eevdf/PKGBUILD +++ b/linux-cachyos-eevdf/PKGBUILD @@ -523,7 +523,8 @@ prepare() { ### Save configuration for later reuse echo "Save configuration for later reuse..." - cat .config > "${srcdir}/../config-${pkgver}-${pkgrel}${pkgbase#linux}" + local basedir="$(dirname "$(readlink "${srcdir}/config")")" + cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}" if [ -n "$_build_nvidia" ]; then cd "${srcdir}" diff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILD index 2cc0ec30..a56b8c53 100644 --- a/linux-cachyos-hardened/PKGBUILD +++ b/linux-cachyos-hardened/PKGBUILD @@ -523,7 +523,8 @@ prepare() { ### Save configuration for later reuse echo "Save configuration for later reuse..." - cat .config > "${srcdir}/../config-${pkgver}-${pkgrel}${pkgbase#linux}" + local basedir="$(dirname "$(readlink "${srcdir}/config")")" + cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}" if [ -n "$_build_nvidia" ]; then cd "${srcdir}" diff --git a/linux-cachyos-lts/PKGBUILD b/linux-cachyos-lts/PKGBUILD index ac6138f7..e16872d3 100644 --- a/linux-cachyos-lts/PKGBUILD +++ b/linux-cachyos-lts/PKGBUILD @@ -591,7 +591,8 @@ prepare() { ### Save configuration for later reuse echo "Save configuration for later reuse..." - cat .config > "${srcdir}/../config-${pkgver}-${pkgrel}${pkgbase#linux}" + local basedir="$(dirname "$(readlink "${srcdir}/config")")" + cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}" if [ -n "$_build_nvidia" ]; then cd "${srcdir}" diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD index 66c1807d..5b7641e6 100644 --- a/linux-cachyos-rc/PKGBUILD +++ b/linux-cachyos-rc/PKGBUILD @@ -525,7 +525,8 @@ prepare() { ### Save configuration for later reuse echo "Save configuration for later reuse..." - cat .config > "${srcdir}/../config-${pkgver}-${pkgrel}${pkgbase#linux}" + local basedir="$(dirname "$(readlink "${srcdir}/config")")" + cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}" if [ -n "$_build_nvidia" ]; then cd "${srcdir}" diff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILD index aa435f29..d58bf6d1 100644 --- a/linux-cachyos-rt-bore/PKGBUILD +++ b/linux-cachyos-rt-bore/PKGBUILD @@ -523,7 +523,8 @@ prepare() { ### Save configuration for later reuse echo "Save configuration for later reuse..." - cat .config > "${srcdir}/../config-${pkgver}-${pkgrel}${pkgbase#linux}" + local basedir="$(dirname "$(readlink "${srcdir}/config")")" + cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}" if [ -n "$_build_nvidia" ]; then cd "${srcdir}" diff --git a/linux-cachyos-sched-ext/PKGBUILD b/linux-cachyos-sched-ext/PKGBUILD index 985c0f11..58ff5db0 100644 --- a/linux-cachyos-sched-ext/PKGBUILD +++ b/linux-cachyos-sched-ext/PKGBUILD @@ -523,7 +523,8 @@ prepare() { ### Save configuration for later reuse echo "Save configuration for later reuse..." - cat .config > "${srcdir}/../config-${pkgver}-${pkgrel}${pkgbase#linux}" + local basedir="$(dirname "$(readlink "${srcdir}/config")")" + cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}" if [ -n "$_build_nvidia" ]; then cd "${srcdir}" diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILD index 42d416e4..7f89b0ba 100644 --- a/linux-cachyos-server/PKGBUILD +++ b/linux-cachyos-server/PKGBUILD @@ -523,7 +523,8 @@ prepare() { ### Save configuration for later reuse echo "Save configuration for later reuse..." - cat .config > "${srcdir}/../config-${pkgver}-${pkgrel}${pkgbase#linux}" + local basedir="$(dirname "$(readlink "${srcdir}/config")")" + cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}" if [ -n "$_build_nvidia" ]; then cd "${srcdir}" diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILD index 7afb270c..484aa07a 100644 --- a/linux-cachyos/PKGBUILD +++ b/linux-cachyos/PKGBUILD @@ -523,7 +523,8 @@ prepare() { ### Save configuration for later reuse echo "Save configuration for later reuse..." - cat .config > "${srcdir}/../config-${pkgver}-${pkgrel}${pkgbase#linux}" + local basedir="$(dirname "$(readlink "${srcdir}/config")")" + cat .config > "${basedir}/config-${pkgver}-${pkgrel}${pkgbase#linux}" if [ -n "$_build_nvidia" ]; then cd "${srcdir}"