From: Frank Ch. Eigler Date: Tue, 7 Jan 2020 15:48:31 +0000 (-0500) Subject: lsb_release -sir on debian produces separate lines X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26a551a3206c27841da7463d2d2b9da018865f3e;p=thirdparty%2Felfutils.git lsb_release -sir on debian produces separate lines --- diff --git a/debuginfod/Makefile.am b/debuginfod/Makefile.am index 2e62e7726..97042d0b2 100644 --- a/debuginfod/Makefile.am +++ b/debuginfod/Makefile.am @@ -74,7 +74,7 @@ debuginfod-client-useragent.h: echo '#define DEBUGINFOD_CLIENT_USERAGENT_1 ""' > $@; \ fi if type lsb_release 2>/dev/null; then \ - echo '#define DEBUGINFOD_CLIENT_USERAGENT_2 "'`lsb_release -sir | sed -e 's, ,/,g'`'"' >> $@; \ + echo '#define DEBUGINFOD_CLIENT_USERAGENT_2 "'`lsb_release -sir | tr '\012' ' ' | sed -e 's, ,/,g'`'"' >> $@; \ else \ echo '#define DEBUGINFOD_CLIENT_USERAGENT_2 ""' >> $@; \ fi