mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 18:56:31 +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
|
||||
break
|
||||
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}-}"
|
||||
CT_DoExecLog ALL ln -sfv "${dirpfx}${t}" "${bindir}/${_t}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user