summaryrefslogtreecommitdiff
path: root/bin/slave-build-connect
blob: 4ef2b2b01cb5eb21a707d38431d79e9c6559256e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

. "${0%/*}/../conf/default.conf"

if [ "${SSH_ORIGINAL_COMMAND%% *}" = "get-assignment" ] || \
  [ "${SSH_ORIGINAL_COMMAND%% *}" = "return-assignment" ]; then
  slave="$1" /bin/sh -c "${base_dir}/bin/${SSH_ORIGINAL_COMMAND}"
else
  >&2 echo "Invalid command: '${SSH_ORIGINAL_COMMAND%% *}'"
  exit 42
fi