From 6c9ef1ccaca1763d6a9e46c71ed9c67f6139c5bc Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 14 Jun 2017 16:11:08 +0200 Subject: remove bashisms - only "bash arrays" and "bash string substituions" left --- bin/slave-build-connect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/slave-build-connect') 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%% *}'" -- cgit v1.2.3-70-g09d2