summaryrefslogtreecommitdiff
path: root/bin/modify-package-state
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/modify-package-state
parent294c66ccc56ee6200b288585833cae1d1bfc3ea8 (diff)
downloadbuilder-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-xbin/modify-package-state5
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