diff options
author | P. 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) |
commit | c3f613d0f4cabd5c715cad2144f5b409e54f65d1 (patch) | |
tree | fbbc956dc5628ac093e7ce7b61d7bddd37be6ebc /build | |
parent | cfd328896e3ab02649b7b763a959b6253d302339 (diff) |
build: Strip trailing spaces from /etc/motd
Diffstat (limited to 'build')
-rwxr-xr-x | build | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |