MOTD update script sends two blank messages

Bug #2007842 reported by Alex Thomson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Livepatch Client
Fix Released
Medium
Unassigned

Bug Description

The MOTD update script for livepatch-client (99-livepatch-kernel-upgrade-required) performs the following check: "if [ $? -eq 0 ] || [ $? -eq 1 ];" This code is incorrect as the exit code is overwritten by the first statement "[ $? -eq 0 ]" which fails with an exit code of 1, resulting in the second statement "[ $? -eq 1 ]" passing.

Alex Thomson (lxgaming)
information type: Proprietary → Public
Revision history for this message
Kian Parvin (kian-parvin) wrote :

Hi,

Thanks for this report. We will add this as an item to be fixed.

Changed in canonical-livepatch-client:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Kian Parvin (kian-parvin) wrote :

This has been fixed in v10.5.3 now available on latest/stable.

Changed in canonical-livepatch-client:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.