mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-19 03:06:42 +00:00
Merge pull request #690 from stilor/fix-empty-symlinks
Avoid creating symlinks with empty prefix
This commit is contained in:
commit
368a0169a2
@ -1795,7 +1795,7 @@ CT_SymlinkTools()
|
|||||||
# No matching files
|
# No matching files
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
if [ "${newpfx}" != "${CT_TARGET}" -o "${bindir}" != "${srcdir}" ]; then
|
if [ -n "${newpfx}" -a \( "${newpfx}" != "${CT_TARGET}" -o "${bindir}" != "${srcdir}" \) ]; then
|
||||||
_t="${newpfx}-${t#${CT_TARGET}-}"
|
_t="${newpfx}-${t#${CT_TARGET}-}"
|
||||||
CT_DoExecLog ALL ln -sfv "${dirpfx}${t}" "${bindir}/${_t}"
|
CT_DoExecLog ALL ln -sfv "${dirpfx}${t}" "${bindir}/${_t}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user