Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/slave-build-connect
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-06-05 20:26:21 +0200
committerErich Eckner <git@eckner.net>2021-06-05 20:26:21 +0200
commit6f59df0faa06e9e5b2127d8376b12bb1cf2db5fd (patch)
treeb380377a92c28beb05b8b249905b684fe4a7cd9e /bin/slave-build-connect
parent8e9130a9d21a2d73f8c354e2a3f1d9ccc6f7ea73 (diff)
make shellcheck happy again
Diffstat (limited to 'bin/slave-build-connect')
-rwxr-xr-xbin/slave-build-connect6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/slave-build-connect b/bin/slave-build-connect
index e40dc32..40a227c 100755
--- a/bin/slave-build-connect
+++ b/bin/slave-build-connect
@@ -5,9 +5,9 @@
# shellcheck source=../lib/load-configuration
. "${0%/*}/../lib/load-configuration"
-if [ "x${SSH_ORIGINAL_COMMAND%% *}" = 'xget-assignment' ] || \
- [ "x${SSH_ORIGINAL_COMMAND%% *}" = 'xreturn-assignment' ] || \
- [ "x${SSH_ORIGINAL_COMMAND%% *}" = 'xping-from-slave' ]; then
+if [ "${SSH_ORIGINAL_COMMAND%% *}" = 'get-assignment' ] || \
+ [ "${SSH_ORIGINAL_COMMAND%% *}" = 'return-assignment' ] || \
+ [ "${SSH_ORIGINAL_COMMAND%% *}" = 'ping-from-slave' ]; then
# small check to prevent some shell-injections
if printf '%s\n' "${SSH_ORIGINAL_COMMAND}" | \