I commented out the two echo lines to resolve the issue:

# output something for update-motd
if [ -n "$NEED_EOL_CHECK" ]; then
    # preserve mtime to avoid race when script runs while dpkg runs
    touch ${stamp}.started
    {  
        #echo ""
        # the script may exit with status 10 when a HWE update is needed
        /usr/bin/hwe-support-status || true
        #echo ""
    } > $stamp
    touch -r ${stamp}.started $stamp
    rm -f ${stamp}.started
fi


Looking at the output of hwe-support-status we can see that it already uses a 
blank line at the start of it's output and finishes with one too so the echoes 
in /usr/lib/update-notifier/update-motd-hwe-eol are redundant.

** Changed in: update-notifier (Ubuntu)
       Status: Confirmed => Triaged

** Changed in: update-notifier (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381455

Title:
  Redundant whitespace echoed by /usr/lib/update-notifier/update-motd-
  hwe-eol

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-notifier/+bug/1381455/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to