diff options
author | Erich Eckner <git@eckner.net> | 2018-03-01 08:37:27 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-01 08:37:27 +0100 |
commit | 6047f2686cfe623e08fbaf4eae0a552ded731eb1 (patch) | |
tree | a4e8df807732b035c3a8d430ddb8cb44565b49cd /bin/build-master-status | |
parent | 1b15a4704e80853b99eef83a3e26e7735bec2f54 (diff) | |
download | builder-6047f2686cfe623e08fbaf4eae0a552ded731eb1.tar.xz |
switch from calling ${mysql_command} to calling the wrapper function mysql_run_query()
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-x | bin/build-master-status | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/build-master-status b/bin/build-master-status index d74ff8a..9be7823 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -557,12 +557,12 @@ if ${web}; then "${line}" done < \ "${tmp_dir}/todos" | \ - ${mysql_command} + mysql_run_query # insert unfound todos # shellcheck disable=SC2016 { printf 'SHOW CREATE TABLE `todos`' | \ - ${mysql_command} --raw --batch | \ + mysql_run_query --raw --batch | \ sed ' 1d 2s/^\S\+\s\+CREATE TABLE `todos` /CREATE TEMPORARY TABLE `td` / @@ -611,7 +611,7 @@ if ${web}; then printf 'WHERE `todos`.`id`=`todo_links`.`dependent`' printf ');\n' } | \ - ${mysql_command} + mysql_run_query rm -f "${tmp_dir}/todos" fi |