diff options
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-x | bin/build-master-status | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bin/build-master-status b/bin/build-master-status index bf307b4..d1ed751 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -561,16 +561,16 @@ if ${web}; then 'arguments' printf '</tr>\n' if [ -r "${work_dir}/ssh-log" ]; then - while read -r date time slave command arguments; do - printf '<tr>' - printf '<td>%s</td>' \ - "${date} ${time}" \ - "${slave}" \ - "${command}" \ - "${arguments}" - printf '</tr>\n' - done < \ - "${work_dir}/ssh-log" + tac "${work_dir}/ssh-log" | \ + while read -r date time slave command arguments; do + printf '<tr>' + printf '<td>%s</td>' \ + "${date} ${time}" \ + "${slave}" \ + "${command}" \ + "${arguments}" + printf '</tr>\n' + done fi printf '%s\n' \ '</table>' \ |