diff options
author | Yann E. MORIN <devnull@localhost> | 2009-06-14 20:57:57 (GMT) |
---|---|---|
committer | Yann E. MORIN <devnull@localhost> | 2009-06-14 20:57:57 (GMT) |
commit | a7ff05b022a8db08185486fa0fbf324f2ecd9d3e (patch) | |
tree | 48a139fc3e94ea3728b335d79685dbdbb47a890f /scripts | |
parent | 008ae8e550eb8e7ed3811d3ab2c87a243e8f2d0b (diff) |
[finish-step] Use local variable in finish-step
When wrapping the tools, use a local variable when iterating.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/internals.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh index b8a80f2..a262c1d 100644 --- a/scripts/build/internals.sh +++ b/scripts/build/internals.sh @@ -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 |