index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2022-05-18 21:23:22 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-05-18 21:23:22 +0200 |
commit | fd01e709dca462a052fec404a7887545b635223d (patch) | |
tree | 84b47177682803dc04dbf2fd04de530e46d754f8 /bin/manage-slaves | |
parent | e7df9a4f5aa42a5a59fe715365532cc9323c77e9 (diff) |
-rwxr-xr-x | bin/manage-slaves | 23 |
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 |