[finish-step] Use local variable in finish-step

When wrapping the tools, use a local variable when iterating.
This commit is contained in:
Yann E. MORIN 2009-06-14 22:57:57 +02:00
parent 008ae8e550
commit a7ff05b022

View File

@ -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