Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2018 15:31:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 229346] freebsd-update install return code changed
Message-ID:  <bug-229346-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229346

            Bug ID: 229346
           Summary: freebsd-update install return code changed
           Product: Base System
           Version: 11.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: mcole36@gmail.com

In 11.1 if you run:

freebsd-update install

and have no updates available you get a return text of:

No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.

and a return code of:

echo $?
1

In 11.2 this returns the same text, but the return code is now:

echo $?
0

This breaks many scripts and jail managers because during an upgrade they loop
to see how many times freebsd-update install needs to run (some times
multiple).  This will affect most jail users.

-- 
You are receiving this mail because:
You are the assignee for the bug.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229346-227>