Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/manage-slaves
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-05-18 21:23:22 +0200
committerErich Eckner <git@eckner.net>2022-05-18 21:23:22 +0200
commitfd01e709dca462a052fec404a7887545b635223d (patch)
tree84b47177682803dc04dbf2fd04de530e46d754f8 /bin/manage-slaves
parente7df9a4f5aa42a5a59fe715365532cc9323c77e9 (diff)
make linter happy
Diffstat (limited to 'bin/manage-slaves')
-rwxr-xr-xbin/manage-slaves23
1 files changed, 10 insertions, 13 deletions
diff --git a/bin/manage-slaves b/bin/manage-slaves
index 3dbd83a..32883a3 100755
--- a/bin/manage-slaves
+++ b/bin/manage-slaves
@@ -35,19 +35,16 @@ fi
case "$1" in
'list')
- infos=$(
- # shellcheck disable=SC2016
- {
- printf 'SELECT'
- printf ' name, CASE WHEN access_allowed = 1 THEN "enabled" ELSE "disabled" END '
- printf ' name, CASE WHEN is_sane = 1 THEN "sane" ELSE "not sane" END '
- printf ' FROM build_slaves'
- printf ';\n'
- } | \
- mysql_run_query | \
- tr '\t' ' '
- )
- echo "${infos[@]}"
+ # shellcheck disable=SC2016
+ {
+ printf 'SELECT'
+ printf ' name, CASE WHEN access_allowed = 1 THEN "enabled" ELSE "disabled" END '
+ printf ' name, CASE WHEN is_sane = 1 THEN "sane" ELSE "not sane" END '
+ printf ' FROM build_slaves'
+ printf ';\n'
+ } | \
+ mysql_run_query | \
+ tr '\t' ' '
;;
'add')
shift