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:
@@ -757,7 +757,7 @@ prepare() {
|
|||||||
|
|
||||||
if [ true = "$_config_fragments" ]; then
|
if [ true = "$_config_fragments" ]; then
|
||||||
local fragments=()
|
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
|
if [ true = "$_config_fragments_no_confirm" ]; then
|
||||||
printf 'Using config fragment %s\n' "${fragments[@]#$_where/}"
|
printf 'Using config fragment %s\n' "${fragments[@]#$_where/}"
|
||||||
|
@@ -811,7 +811,7 @@ prepare() {
|
|||||||
|
|
||||||
if [ true = "$_config_fragments" ]; then
|
if [ true = "$_config_fragments" ]; then
|
||||||
local fragments=()
|
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
|
if [ true = "$_config_fragments_no_confirm" ]; then
|
||||||
printf 'Using config fragment %s\n' "${fragments[@]#$_where/}"
|
printf 'Using config fragment %s\n' "${fragments[@]#$_where/}"
|
||||||
|
@@ -811,7 +811,7 @@ prepare() {
|
|||||||
|
|
||||||
if [ true = "$_config_fragments" ]; then
|
if [ true = "$_config_fragments" ]; then
|
||||||
local fragments=()
|
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
|
if [ true = "$_config_fragments_no_confirm" ]; then
|
||||||
printf 'Using config fragment %s\n' "${fragments[@]#$_where/}"
|
printf 'Using config fragment %s\n' "${fragments[@]#$_where/}"
|
||||||
|
Reference in New Issue
Block a user