Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/nit-picker13
1 files changed, 5 insertions, 8 deletions
diff --git a/bin/nit-picker b/bin/nit-picker
index 7312348..7d7da06 100755
--- a/bin/nit-picker
+++ b/bin/nit-picker
@@ -481,14 +481,11 @@ done
printf ';\n'
} \
| mysql_run_query \
- | {
- printf 'DELETE `dependencies`'
- printf ' FROM `dependencies`'
- printf ' WHERE `dependencies`.`id` IN ('
- sed '$! s/$/,/' \
- | tr -d '\n'
- printf ');\n'
- }
+ | sed '
+ 1 i DELETE `dependencies` FROM `dependencies` WHERE `dependencies`.`id` IN (
+ $! s/$/,/
+ $ a );
+ '
fi
# shellcheck disable=SC2016
if [ -s "${tmp_dir}/add-those-dependencies" ]; then