mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 18:56:31 +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
|
||||
# scripts, we don't know if they would in the end spawn a binary...
|
||||
# Just skip symlinks
|
||||
for t in "${CT_TARGET}-"*; do
|
||||
if [ "$( LANG=C stat -c '%F' "${t}" )" != "symbolic link" ]; then
|
||||
CT_DoExecLog ALL mv "${t}" ".${t}"
|
||||
CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${t}"
|
||||
for _t in "${CT_TARGET}-"*; do
|
||||
if [ "$( LANG=C stat -c '%F' "${_t}" )" != "symbolic link" ]; then
|
||||
CT_DoExecLog ALL mv "${t}" ".${_t}"
|
||||
CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${_t}"
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user