mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-31 08:25:32 +00:00
[finish-step] Use local variable in finish-step
When wrapping the tools, use a local variable when iterating.
This commit is contained in:
parent
008ae8e550
commit
a7ff05b022
@ -56,10 +56,10 @@ do_finish() {
|
|||||||
# Do it unconditionally, even for those tools that happen to be shell
|
# Do it unconditionally, even for those tools that happen to be shell
|
||||||
# scripts, we don't know if they would in the end spawn a binary...
|
# scripts, we don't know if they would in the end spawn a binary...
|
||||||
# Just skip symlinks
|
# Just skip symlinks
|
||||||
for t in "${CT_TARGET}-"*; do
|
for _t in "${CT_TARGET}-"*; do
|
||||||
if [ "$( LANG=C stat -c '%F' "${t}" )" != "symbolic link" ]; then
|
if [ "$( LANG=C stat -c '%F' "${_t}" )" != "symbolic link" ]; then
|
||||||
CT_DoExecLog ALL mv "${t}" ".${t}"
|
CT_DoExecLog ALL mv "${t}" ".${_t}"
|
||||||
CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${t}"
|
CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${_t}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user