Skip to content

Commit

Permalink
Fixed spurious blank lines in motd
Browse files Browse the repository at this point in the history
  • Loading branch information
UrsaDK committed Nov 14, 2023
1 parent 114bf10 commit 3c2f4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apkovl/etc/periodic/15min/motd
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _ip() {
resources=' %-18s %11s %11s %11s %s\n'
connections=' %-6s %23s %23s %s\n'

cat << EOF > /etc/motd
cat << EOF | sed '/./,/^$/!d' | tee /etc/motd
$(awk -F= '$1=="PRETTY_NAME" { print $2 ;}' /etc/os-release | tr -d '"') ($(uname -r))
Uptime $(_uptime)
at $(date)
Expand Down

0 comments on commit 3c2f4c6

Please sign in to comment.