summaryrefslogtreecommitdiff
path: root/bin/get-assignment
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-05-02 14:59:51 +0200
committerErich Eckner <git@eckner.net>2018-05-02 14:59:51 +0200
commita4cded36236c30ae66f1abeb9190ac17c1483c7f (patch)
tree9ee77fb9fb688cdb05d808d5bffb0e4bbac0239f /bin/get-assignment
parent0f3ded1fe95a667a78061b7ff798befbbcc2403f (diff)
downloadbuilder-a4cded36236c30ae66f1abeb9190ac17c1483c7f.tar.xz
bin/get-assignment: fix yet another query
Diffstat (limited to 'bin/get-assignment')
-rwxr-xr-xbin/get-assignment4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/get-assignment b/bin/get-assignment
index d8a77ca..34a990e 100755
--- a/bin/get-assignment
+++ b/bin/get-assignment
@@ -43,7 +43,7 @@ hand_out_assignment() {
# shellcheck disable=SC2016
{
printf 'UPDATE `build_slaves`'
- printf ' SET `currently_building` = from_base64(%s)' \
+ printf ' SET `currently_building` = from_base64("%s")' \
"$(printf '%s' "$1" | base64 -w0)"
# shellcheck disable=SC2154
printf ' WHERE `build_slaves`.`id`=from_base64("%s");\n' \
@@ -51,7 +51,7 @@ hand_out_assignment() {
printf 'UPDATE `build_assignments`'
printf ' SET `build_assignments`.`priority`=0'
- printf ' WHERE `build_assignments`.`id`=from_base64(%s);\n' \
+ printf ' WHERE `build_assignments`.`id`=from_base64("%s");\n' \
"$(printf '%s' "${slave_id}" | base64 -w0)"
} | \
mysql_run_query