index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | lib/mysql-functions | 5 |
diff --git a/lib/mysql-functions b/lib/mysql-functions index 0819089..5695b97 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -46,7 +46,10 @@ mysql_run_query() { query_stdin=$(mktemp "${work_dir}/tmp.mysql-functions.${file_name_extra}query.$(date +'%Y-%m-%dT%T').XXXXXX.stdin") query_stdout="${query_stdin%.stdin}.stdout" query_stderr="${query_stdin%.stdin}.stderr" - cat > "${query_stdin}" + { + printf -- '-- called by %s\n' "$0" + cat + } > "${query_stdin}" for _ in $(seq 10); do if [ -f "${query_stdout}" ]; then wait_some_time 10 10 |