mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-11 21:15:21 +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. (transplanted from 5d6d3c28a658a65551d4eb5de414fd97b575f314)
This commit is contained in:
parent
caa0b3abe0
commit
1e2788c044
@ -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…
x
Reference in New Issue
Block a user