Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/check-db-structure
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-17 15:24:40 +0100
committerErich Eckner <git@eckner.net>2019-01-17 15:24:40 +0100
commitc9f55c95cb382e22c41a310c1005e3de43379ae9 (patch)
tree38210b816af5645dad7fad10b1de6a32fe89c76b /bin/check-db-structure
parent294c66ccc56ee6200b288585833cae1d1bfc3ea8 (diff)
style: WHERE,ON,FROM,SELECT,JOIN should be on beginning of source lines
Diffstat (limited to 'bin/check-db-structure')
-rwxr-xr-xbin/check-db-structure6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/check-db-structure b/bin/check-db-structure
index afe01bd..1055b08 100755
--- a/bin/check-db-structure
+++ b/bin/check-db-structure
@@ -9,7 +9,11 @@
# shellcheck disable=SC2016
{
- printf 'SELECT `proc`.`name` FROM `mysql`.`proc` WHERE `proc`.`Db`="buildmaster"' | \
+ {
+ printf 'SELECT `proc`.`name`'
+ printf ' FROM `mysql`.`proc`'
+ printf ' WHERE `proc`.`Db`="buildmaster"'
+ } | \
mysql_run_query | \
while read -r procedure; do
printf 'SHOW CREATE PROCEDURE `%s`;\n' "${procedure}"