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:
parent
7143a7017f
commit
fdac1ef3df
@ -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/}"
|
||||
|
@ -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/}"
|
||||
|
@ -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/}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user