summaryrefslogtreecommitdiffhomepage
path: root/subr.rtl
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-08-24 23:44:54 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2021-08-24 23:44:54 +0200
commit4025bd27c99d190ba4812d441a1553ee04b170eb (patch)
treedd86e15f7608af935ddec5c02c8bdd46841cb62b /subr.rtl
parentf246485bf244cb770dfd57f48098af75faea552e (diff)
downloadmidipix_build-4025bd27c99d190ba4812d441a1553ee04b170eb.tar.bz2
midipix_build-4025bd27c99d190ba4812d441a1553ee04b170eb.tar.xz
subr.rtl/rtl_install_v2.subr:rtlp_install_fmap_patterns(): only prepend ${_rifp2_prefix} given non-absolute ${_rifp2_lhs}.
Diffstat (limited to 'subr.rtl')
-rw-r--r--subr.rtl/rtl_install_v2.subr7
1 files changed, 6 insertions, 1 deletions
diff --git a/subr.rtl/rtl_install_v2.subr b/subr.rtl/rtl_install_v2.subr
index df78f42a..6d8881eb 100644
--- a/subr.rtl/rtl_install_v2.subr
+++ b/subr.rtl/rtl_install_v2.subr
@@ -124,7 +124,12 @@ rtlp_install_fmap_patterns() {
if rtlp_install_splitl_ref \$_rifp2_expr \$_rifp2_lhs \$_rifp2_rhs '%<' '>'; then
case "${_rifp2_expr}" in
*\**)
- set +o noglob; for _rifp2_pname in ${_rifp2_lhs:+"${_rifp2_lhs%/}/"}${_rifp2_expr}; do
+ if [ "${_rifp2_lhs#/}" = "${_rifp2_lhs}" ]; then
+ _rifp2_lhs_full="${_rifp2_prefix:+${_rifp2_prefix%}/}${_rifp2_lhs:+${_rifp2_lhs%/}/}";
+ else
+ _rifp2_lhs_full="${_rifp2_lhs:+${_rifp2_lhs%/}/}";
+ fi;
+ set +o noglob; for _rifp2_pname in ${_rifp2_lhs_full}${_rifp2_expr}; do
set -o noglob; _rifp2_pname="${_rifp2_pname%/}${_rifp2_rhs:+/${_rifp2_rhs}}";
if [ -e "${_rifp2_pname}" ]; then
eval ${_rifp2_rspec_list}='${'"${_rifp2_rspec_list}"':+${'"${_rifp2_rspec_list}"'}${RTLP_INSTALL_NL}}${_rifp2_pname}';