From fdac1ef3dff4d86ebe3efa2956ed0069b73848e1 Mon Sep 17 00:00:00 2001 From: Jami Kettunen Date: Sat, 13 Jun 2020 19:21:44 +0300 Subject: [PATCH] linux5*-tkg: Fix finding config fragments when $_where is a symlink (#18) I personally prefer to symlink the folder containing the kernel PKGBUILD among other files to somewhere else for quicker access and with that setup .myfrag config fragments were not getting found earlier. --- linux54-tkg/PKGBUILD | 2 +- linux56-tkg/PKGBUILD | 2 +- linux57-tkg/PKGBUILD | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/linux54-tkg/PKGBUILD b/linux54-tkg/PKGBUILD index 40abe6e..6833bb5 100644 --- a/linux54-tkg/PKGBUILD +++ b/linux54-tkg/PKGBUILD @@ -757,7 +757,7 @@ prepare() { if [ true = "$_config_fragments" ]; then local fragments=() - mapfile -d '' -t fragments < <(find "$_where" -type f -name "*.myfrag" -print0) + mapfile -d '' -t fragments < <(find "$_where"/ -type f -name "*.myfrag" -print0) if [ true = "$_config_fragments_no_confirm" ]; then printf 'Using config fragment %s\n' "${fragments[@]#$_where/}" diff --git a/linux56-tkg/PKGBUILD b/linux56-tkg/PKGBUILD index 44f9331..c7411cb 100644 --- a/linux56-tkg/PKGBUILD +++ b/linux56-tkg/PKGBUILD @@ -811,7 +811,7 @@ prepare() { if [ true = "$_config_fragments" ]; then local fragments=() - mapfile -d '' -t fragments < <(find "$_where" -type f -name "*.myfrag" -print0) + mapfile -d '' -t fragments < <(find "$_where"/ -type f -name "*.myfrag" -print0) if [ true = "$_config_fragments_no_confirm" ]; then printf 'Using config fragment %s\n' "${fragments[@]#$_where/}" diff --git a/linux57-tkg/PKGBUILD b/linux57-tkg/PKGBUILD index 3b6192c..4aeb16d 100644 --- a/linux57-tkg/PKGBUILD +++ b/linux57-tkg/PKGBUILD @@ -811,7 +811,7 @@ prepare() { if [ true = "$_config_fragments" ]; then local fragments=() - mapfile -d '' -t fragments < <(find "$_where" -type f -name "*.myfrag" -print0) + mapfile -d '' -t fragments < <(find "$_where"/ -type f -name "*.myfrag" -print0) if [ true = "$_config_fragments_no_confirm" ]; then printf 'Using config fragment %s\n' "${fragments[@]#$_where/}"