From 1eac7eaa02f474e470d35c79ca4ff4b97cf56db0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 15 Oct 2019 15:03:36 +0200 Subject: bin/nit-picker: avoid sponge once --- bin/nit-picker | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bin') 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' } \ -- cgit v1.2.3-70-g09d2