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.
This commit is contained in:
Jami Kettunen 2020-06-13 19:21:44 +03:00 committed by GitHub
parent 7143a7017f
commit fdac1ef3df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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/}"

View File

@ -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/}"

View File

@ -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/}"