diff options
author | Erich Eckner <git@eckner.net> | 2017-06-14 16:11:08 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-06-14 16:11:08 +0200 |
commit | 6c9ef1ccaca1763d6a9e46c71ed9c67f6139c5bc (patch) | |
tree | e1d1bf6f08fc8d0c6486bed5590fda3d1f9b3946 /bin/slave-build-connect | |
parent | f25f9462a68a968a676d555613cdfa6e7516cad1 (diff) | |
download | builder-6c9ef1ccaca1763d6a9e46c71ed9c67f6139c5bc.tar.xz |
remove bashisms - only "bash arrays" and "bash string substituions" left
Diffstat (limited to 'bin/slave-build-connect')
-rwxr-xr-x | bin/slave-build-connect | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/slave-build-connect b/bin/slave-build-connect index c024386..930fdd9 100755 --- a/bin/slave-build-connect +++ b/bin/slave-build-connect @@ -2,8 +2,8 @@ . "${0%/*}/../conf/default.conf" -if [ "${SSH_ORIGINAL_COMMAND%% *}" == "get-assignment" ] || \ - [ "${SSH_ORIGINAL_COMMAND%% *}" == "return-assignment" ]; then +if [ "${SSH_ORIGINAL_COMMAND%% *}" = "get-assignment" ] || \ + [ "${SSH_ORIGINAL_COMMAND%% *}" = "return-assignment" ]; then slave="$1" /bin/bash -c "${base_dir}/bin/${SSH_ORIGINAL_COMMAND}" else >&2 echo "Invalid command: '${SSH_ORIGINAL_COMMAND%% *}'" |