Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-15 15:03:36 +0200
committerErich Eckner <git@eckner.net>2019-10-15 15:03:36 +0200
commit1eac7eaa02f474e470d35c79ca4ff4b97cf56db0 (patch)
tree70012b6f9186d537bbdef3c7205a717690b84752 /bin
parent28cd7831f0515410d7815aec1893a5b51af2ba62 (diff)
bin/nit-picker: avoid sponge once
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nit-picker6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/nit-picker b/bin/nit-picker
index eaec4ce..22ecdfd 100755
--- a/bin/nit-picker
+++ b/bin/nit-picker
@@ -469,13 +469,11 @@ if [ -s "${tmp_dir}/remove-those-dependencies" ]; then
printf ';\n'
} \
| mysql_run_query \
- | sponge "${tmp_dir}/remove-those-dependencies"
- # shellcheck disable=SC2016
- {
+ | {
printf 'DELETE `dependencies`'
printf ' FROM `dependencies`'
printf ' WHERE `dependencies`.`id` IN ('
- sed '$! s/$/,/' "${tmp_dir}/remove-those-dependencies" \
+ sed '$! s/$/,/' \
| tr -d '\n'
printf ');\n'
} \