mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 18:56:31 +00:00
scripts/finish: do not try to symlink if sed expr is a no-op
If the sed expression does not transform the tuple, do not try to create the symlink.
This commit is contained in:
parent
e8a36ea13c
commit
58ade1d7aa
@ -31,7 +31,11 @@ do_finish() {
|
||||
fi
|
||||
if [ -n "${CT_TARGET_ALIAS_SED_EXPR}" ]; then
|
||||
_t=$(echo "$t" |sed -r -e "${CT_TARGET_ALIAS_SED_EXPR}")
|
||||
CT_DoExecLog ALL ln -sv "${t}" "${_t}"
|
||||
if [ "${_t}" = "${t}" ]; then
|
||||
CT_DoLog WARN "The sed expression '${CT_TARGET_ALIAS_SED_EXPR}' has no effect on '${t}'"
|
||||
else
|
||||
CT_DoExecLog ALL ln -sv "${t}" "${_t}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
CT_Popd
|
||||
|
Loading…
Reference in New Issue
Block a user