summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-18 08:45:34 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-18 08:47:24 (EDT)
commitc3f613d0f4cabd5c715cad2144f5b409e54f65d1 (patch)
treefbbc956dc5628ac093e7ce7b61d7bddd37be6ebc
parentcfd328896e3ab02649b7b763a959b6253d302339 (diff)
build: Strip trailing spaces from /etc/motd
-rwxr-xr-xbuild3
1 files changed, 2 insertions, 1 deletions
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