summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-21 21:08:05 +0100
committerErich Eckner <git@eckner.net>2018-01-21 21:08:05 +0100
commit958fb1a5f5900972f3eb37a3e299c2dcad30d03a (patch)
treef095d876ba194d8eed41ae2ce92034ca2a38fde7
parent14b3fccef66633414be935a3d163db9d253225c6 (diff)
downloadbuilder-958fb1a5f5900972f3eb37a3e299c2dcad30d03a.tar.xz
bin/mysql-functions: allow for longer mysql commands
-rwxr-xr-xbin/mysql-functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/mysql-functions b/bin/mysql-functions
index b5c7d80..d3c7ec4 100755
--- a/bin/mysql-functions
+++ b/bin/mysql-functions
@@ -567,7 +567,7 @@ mysql_generate_package_metadata() {
done
printf '.' >&2
- ${mysql_command} -e "$(
+ {
if [ -s "${temp_dir}/add-build-assignments-command" ]; then
cat "${temp_dir}/add-build-assignments-command"
fi
@@ -577,7 +577,8 @@ mysql_generate_package_metadata() {
if [ -s "${temp_dir}/add-install-targets-command" ]; then
cat "${temp_dir}/add-install-targets-command"
fi
- )"
+ } | \
+ ${mysql_command}
printf '.' >&2
)