Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-25 16:08:35 +0100
committerErich Eckner <git@eckner.net>2017-11-25 16:08:35 +0100
commit59e21ecb524b130fcf78a5cad9aab4049e753910 (patch)
tree1d9bf15e6c8376c03e6866c6d5b6f112995b6334 /bin
parent5c8a7052f25db9d75a91627aa36b629a0c8afc5d (diff)
bin/slave-build-connect: keep log of (valid) ssh commands
Diffstat (limited to 'bin')
-rwxr-xr-xbin/slave-build-connect3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/slave-build-connect b/bin/slave-build-connect
index a3fdc5d..ff8beac 100755
--- a/bin/slave-build-connect
+++ b/bin/slave-build-connect
@@ -15,6 +15,9 @@ if [ "${SSH_ORIGINAL_COMMAND%% *}" = "get-assignment" ] || \
fi
+ printf '%s %s' "$1" "${SSH_ORIGINAL_COMMAND}" >> \
+ "${work_dir}/ssh-log"
+
slave="$1" /bin/sh -c "${base_dir}/bin/${SSH_ORIGINAL_COMMAND}"
else