From 8f5dfe97c2edfdd43ea72226c97e671e6cafc348 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Thu, 13 Apr 2017 00:08:36 -0700 Subject: Avoid creating symlinks with empty prefix (regression after Cygwin fix) Signed-off-by: Alexey Neyman --- scripts/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/functions') 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 -- cgit v1.2.3