From 524ad19e1ea39627b7193caabf5cf16b5f52265e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 28 Nov 2017 14:01:08 +0100 Subject: bin/build-master-status: show ssh-log from-bottom-to-top --- bin/build-master-status | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'bin/build-master-status') 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 '\n' if [ -r "${work_dir}/ssh-log" ]; then - while read -r date time slave command arguments; do - printf '' - printf '%s' \ - "${date} ${time}" \ - "${slave}" \ - "${command}" \ - "${arguments}" - printf '\n' - done < \ - "${work_dir}/ssh-log" + tac "${work_dir}/ssh-log" | \ + while read -r date time slave command arguments; do + printf '' + printf '%s' \ + "${date} ${time}" \ + "${slave}" \ + "${command}" \ + "${arguments}" + printf '\n' + done fi printf '%s\n' \ '' \ -- cgit v1.2.3-70-g09d2