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 diff --git a/scripts/functions b/scripts/functions index 3248c07..39ec2b4 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 v0.10.2-6-g49f6