index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-10-17 15:00:24 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-17 15:00:24 +0200 |
commit | 7a4bb95433fa40ca482a42438840341f13a6c3e9 (patch) | |
tree | 97bcde76e071fa0a69775f885e45d04ffb820481 /bin | |
parent | 7f394abdd22aac80028f08ab37635201727559ad (diff) |
-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 |