Public bug reported:

50-motd-news loops through a list of URLs attempting to save each to a CACHE 
file.
But the script overwrites CACHE so only the last URL received is saved.

The loop:
for u in $URLS; do ...

Where it overwrites CACHE instead of appending to it:

safe_print "$NEWS" 2>/dev/null >$CACHE || true

and

: > "$CACHE"

** Affects: base-files (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  50-motd-news only displays last URL

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1932075/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to