summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-25 16:26:16 +0100
committerErich Eckner <git@eckner.net>2017-11-25 16:26:16 +0100
commited892e8f4933fa448f0296db2965e40652c9199a (patch)
treec5a11ef41389fe266e81a9ba219a3e626fa7745a
parent2243291ce55405ed28b6ece1e905aef4a768a840 (diff)
downloadbuilder-ed892e8f4933fa448f0296db2965e40652c9199a.tar.xz
bin/slave-build-connect: add date/time to ssh log
-rwxr-xr-xbin/slave-build-connect2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/slave-build-connect b/bin/slave-build-connect
index ff8beac..8a4b96c 100755
--- a/bin/slave-build-connect
+++ b/bin/slave-build-connect
@@ -15,7 +15,7 @@ if [ "${SSH_ORIGINAL_COMMAND%% *}" = "get-assignment" ] || \
fi
- printf '%s %s' "$1" "${SSH_ORIGINAL_COMMAND}" >> \
+ printf '%s %s %s' "$(date '+%F %T')" "$1" "${SSH_ORIGINAL_COMMAND}" >> \
"${work_dir}/ssh-log"
slave="$1" /bin/sh -c "${base_dir}/bin/${SSH_ORIGINAL_COMMAND}"