diff options
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index 0ba96b48..2bc2dacd 100644 --- a/scripts/functions +++ b/scripts/functions @@ -1784,7 +1784,11 @@ CT_SymlinkTools() CT_Pushd "${srcdir}" for t in "${CT_TARGET}-"*; do - if [ -n "${newpfx}" -a "${newpfx}" != "${CT_TARGET}" ]; then + if [ "${t}" = "${CT_TARGET}-*" ]; then + # No matching files + break + fi + if [ "${newpfx}" != "${CT_TARGET}" -o "${bindir}" != "${srcdir}" ]; then _t="${newpfx}-${t#${CT_TARGET}-}" CT_DoExecLog ALL ln -sfv "${dirpfx}${t}" "${bindir}/${_t}" fi |