diff options
author | Erich Eckner <git@eckner.net> | 2018-03-01 09:05:51 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-01 09:05:51 +0100 |
commit | 496c571cd233a8646351ba241c3119ceaf2b8063 (patch) | |
tree | 3018e0a5a4ed78158c57a5b09d4b9e87fd3246d5 /bin/db-update | |
parent | 6047f2686cfe623e08fbaf4eae0a552ded731eb1 (diff) | |
download | builder-496c571cd233a8646351ba241c3119ceaf2b8063.tar.xz |
use "mysql -N" instead of cumbersome sedding
Diffstat (limited to 'bin/db-update')
-rwxr-xr-x | bin/db-update | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/bin/db-update b/bin/db-update index 534c245..78ff622 100755 --- a/bin/db-update +++ b/bin/db-update @@ -457,11 +457,8 @@ errors=$( printf ' JOIN `repository_stabilities` ON `repository_stability_relations`.`more_stable`=`repository_stabilities`.`id`' printf ' WHERE `repository_stabilities`.`name` = "testing"' } | \ - mysql_run_query --raw --batch | \ - sed ' - 1d - p - ' + mysql_run_query -N --raw --batch | \ + sed 'p' # shellcheck disable=SC2086 printf '%s\n' ${packages_to_force_stabilize} | \ sort -u @@ -496,11 +493,8 @@ errors=$( printf ' JOIN `repository_stabilities` ON `repository_stability_relations`.`more_stable`=`repository_stabilities`.`id`' printf ' WHERE `repository_stabilities`.`name` = "staging"' } | \ - mysql_run_query --raw --batch | \ - sed ' - 1d - p - ' + mysql_run_query -N --raw --batch | \ + sed 'p' # shellcheck disable=SC2086 printf '%s\n' ${packages_to_force_unstage} | \ sort -u |