diff options
author | Erich Eckner <git@eckner.net> | 2018-02-01 10:09:11 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-01 10:09:11 +0100 |
commit | b8a0ed85a347f35a6c34723f80b4a7355f577785 (patch) | |
tree | 8bb883829c210ae330fe9e2d1836bdde4a5324d8 /bin | |
parent | 0553c6d12a5e310899e8a5679913faafa72b17fb (diff) | |
download | builder-b8a0ed85a347f35a6c34723f80b4a7355f577785.tar.xz |
bin/build-master-status: bugfix
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/build-master-status | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/build-master-status b/bin/build-master-status index 2477e3b..1672789 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -538,22 +538,23 @@ if ${web}; then # update todos # shellcheck disable=SC2016 while read -r file line desc; do - printf 'UPDATE TABLE `todos`' + printf 'UPDATE `todos`' printf ' SET `todos`.`line`=from_base64("%s")' \ "${line}" printf ' WHERE `todos`.`file`=from_base64("%s")' \ "${file}" - printf ' AND `todos`.`desc`=from_base64("%s");\n' \ + printf ' AND `todos`.`description`=from_base64("%s");\n' \ "${desc}" - printf 'UPDATE TABLE `todos`' - printf ' SET `todos`.`desc`=from_base64("%s")' \ + printf 'UPDATE `todos`' + printf ' SET `todos`.`description`=from_base64("%s")' \ "${desc}" printf ' WHERE `todos`.`file`=from_base64("%s")' \ "${file}" printf ' AND `todos`.`line`=from_base64("%s");\n' \ "${line}" - done | \ + done < \ + "${tmp_dir}/todos" | \ ${mysql_command} # insert unfound todos # shellcheck disable=SC2016 |