diff options
author | Erich Eckner <git@eckner.net> | 2019-01-17 15:24:40 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-01-17 15:24:40 +0100 |
commit | c9f55c95cb382e22c41a310c1005e3de43379ae9 (patch) | |
tree | 38210b816af5645dad7fad10b1de6a32fe89c76b /bin/modify-package-state | |
parent | 294c66ccc56ee6200b288585833cae1d1bfc3ea8 (diff) | |
download | builder-c9f55c95cb382e22c41a310c1005e3de43379ae9.tar.xz |
style: WHERE,ON,FROM,SELECT,JOIN should be on beginning of source lines
Diffstat (limited to 'bin/modify-package-state')
-rwxr-xr-x | bin/modify-package-state | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/modify-package-state b/bin/modify-package-state index 7a0c252..b67fc4d 100755 --- a/bin/modify-package-state +++ b/bin/modify-package-state @@ -249,7 +249,10 @@ while read -r a b; do exit 42 ;; esac - if printf 'SELECT 1 FROM %s %s AND %s LIMIT 1' "${combiner}" "${selector}" "${tester}" | \ + if { + printf 'SELECT 1' + printf ' FROM %s %s AND %s LIMIT 1' "${combiner}" "${selector}" "${tester}" + } | \ mysql_run_query | \ grep -qxF '1'; then # shellcheck disable=SC2016 |