summaryrefslogtreecommitdiff
path: root/bin/slave-build-connect
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-04-23 17:02:43 +0200
committerErich Eckner <git@eckner.net>2017-04-23 17:02:43 +0200
commit502c397de443a82bf9231efbb0c6f583f5326dc3 (patch)
tree77ec15a99be6039b1ba1b98c7f99d791f488f1c6 /bin/slave-build-connect
parent61512d1f05d0c6e98e0f9114bd099ba29495b26c (diff)
downloadbuilder-502c397de443a82bf9231efbb0c6f583f5326dc3.tar.xz
bin/build-packages started
Diffstat (limited to 'bin/slave-build-connect')
-rwxr-xr-xbin/slave-build-connect9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/slave-build-connect b/bin/slave-build-connect
new file mode 100755
index 0000000..4fff765
--- /dev/null
+++ b/bin/slave-build-connect
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+. "${0%/*}/../conf/default.conf"
+
+if [ "${SSH_ORIGINAL_COMMAND% *}" == "get-assignment" ]; then
+ /bin/bash -c "${base_dir}/bin/${SSH_ORIGINAL_COMMAND}" "$@"
+else
+ >&2 echo "Invalid command: ${SSH_ORIGINAL_COMMAND} $@"
+fi