From c3f613d0f4cabd5c715cad2144f5b409e54f65d1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 18 Jul 2014 08:45:34 -0400 Subject: build: Strip trailing spaces from /etc/motd --- diff --git a/build b/build index 8ec83f8..b58f810 100755 --- a/build +++ b/build @@ -34,7 +34,8 @@ install: build "$$(printf '%s' "$${dist_motd_banner}")" \ >base-files.data/etc/motd; \ sed ':l; N; $$!bl; s/\([^\n]\)\n\([^\n]\)/\1 \2/g' src/etc/motd | \ - sed "$(script)" | fold -s -w 73 >>base-files.data/etc/motd; \ + sed "$(script)" | fold -s -w 73 | sed 's/[ \t]*$$//' \ + >>base-files.data/etc/motd; \ for file in /etc/issue; do \ sed "$(script)" "src/$${file}" >"base-files.data/$${file}"; \ done -- cgit v0.9.1