diff options
author | Alexey Neyman <stilor@att.net> | 2017-04-13 00:08:36 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-04-13 00:08:36 -0700 |
commit | 8f5dfe97c2edfdd43ea72226c97e671e6cafc348 (patch) | |
tree | 250d2b4f3b215aa6f37d74ce411e5709061e4fcd /scripts/functions | |
parent | 8d9babee4f7ff216435fcd569fc9cbee0596356a (diff) | |
download | crosstool-ng-8f5dfe97c2edfdd43ea72226c97e671e6cafc348.tar.gz crosstool-ng-8f5dfe97c2edfdd43ea72226c97e671e6cafc348.tar.bz2 crosstool-ng-8f5dfe97c2edfdd43ea72226c97e671e6cafc348.zip |
Avoid creating symlinks with empty prefix
(regression after Cygwin fix)
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/functions')
-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 |