index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/nit-picker | 13 |
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 |