Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-2158

mender-artifact should exit with nonzero value after printing usage text

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.1, 1.7.0
    • Labels:
      None

      Description

      Currently, when mender-artifact prints usage text, for example when no command line parameters are supplied, it exits with status 0. A bug in a script could interpret this as a successful command (e.g. thinking it had validated a signed artifact), when it should instead notice that something is wrong. Mender-artifact should exit with a nonzero value in this case, or any case where the command line parameters are not correct.

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              don_cross Don Cross
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel