diff options
author | Alexey Neyman <stilor@att.net> | 2017-04-13 08:43:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 08:43:42 -0700 |
commit | 368a0169a27313cca60cf7d7358b6f3ef12122e4 (patch) | |
tree | 550e092216a4fd5c5148b110a3fb6873a5e88619 | |
parent | cde8fb08c5d7603ee2437e397be0082a80ab0411 (diff) | |
parent | 8f5dfe97c2edfdd43ea72226c97e671e6cafc348 (diff) | |
download | crosstool-ng-368a0169a27313cca60cf7d7358b6f3ef12122e4.tar.gz crosstool-ng-368a0169a27313cca60cf7d7358b6f3ef12122e4.tar.bz2 crosstool-ng-368a0169a27313cca60cf7d7358b6f3ef12122e4.zip |
Merge pull request #690 from stilor/fix-empty-symlinkscrosstool-ng-1.23.0
Avoid creating symlinks with empty prefix
-rw-r--r-- | scripts/functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index 3248c079..39ec2b47 100644 --- a/scripts/functions +++ b/scripts/functions @@ -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 |