From 4025bd27c99d190ba4812d441a1553ee04b170eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Tue, 24 Aug 2021 23:44:54 +0200 Subject: subr.rtl/rtl_install_v2.subr:rtlp_install_fmap_patterns(): only prepend ${_rifp2_prefix} given non-absolute ${_rifp2_lhs}. --- subr.rtl/rtl_install_v2.subr | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'subr.rtl') 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}'; -- cgit v1.2.3