summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions
index 0ba96b4..2bc2dac 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