Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2019 10:20:48 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r345322 - stable/11/usr.sbin/freebsd-update
Message-ID:  <201903201020.x2KAKmtw088804@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr (ports committer)
Date: Wed Mar 20 10:20:48 2019
New Revision: 345322
URL: https://svnweb.freebsd.org/changeset/base/345322

Log:
  MFC r34505: freebsd-update: restore old exit code when no updates are available
  locally
  
  This unbreaks ezjail and iocell, which get into an endless loop trying to
  figure out how many times "freebsd-update install" needs to be called.
  
  PR:		229346
  Submitted by:	Mike Cole <mcole36 at gmail.com>
  Approved by:	bapt

Modified:
  stable/11/usr.sbin/freebsd-update/freebsd-update.sh
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/freebsd-update/freebsd-update.sh
==============================================================================
--- stable/11/usr.sbin/freebsd-update/freebsd-update.sh	Wed Mar 20 10:11:21 2019	(r345321)
+++ stable/11/usr.sbin/freebsd-update/freebsd-update.sh	Wed Mar 20 10:20:48 2019	(r345322)
@@ -818,6 +818,7 @@ install_check_params () {
 		echo "No updates are available to install."
 		if [ $ISFETCHED -eq 0 ]; then
 			echo "Run '$0 fetch' first."
+			exit 1
 		fi
 		exit 0
 	fi



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