Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 2025 19:14:50 GMT
From:      Enji Cooper <ngie@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0adec3d7ec96 - main - freebsd-update: sort options alphabetically
Message-ID:  <202509091914.589JEoTp016852@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=0adec3d7ec96105c402ff2286e402ad63c845066

commit 0adec3d7ec96105c402ff2286e402ad63c845066
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2025-09-09 19:11:13 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2025-09-09 19:14:37 +0000

    freebsd-update: sort options alphabetically
    
    This helps future developers when adding additional options handlers in the
    surrounding blocks.
    
    This is effectively a no-op.
    
    MFC after:      1 month
---
 usr.sbin/freebsd-update/freebsd-update.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
index 81040431ea79..b3775382f66c 100644
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -512,14 +512,14 @@ parse_cmdline () {
 			if [ $# -eq 1 ]; then usage; fi; shift
 			config_KeyPrint $1 || usage
 			;;
-		-s)
-			if [ $# -eq 1 ]; then usage; fi; shift
-			config_ServerName $1 || usage
-			;;
 		-r)
 			if [ $# -eq 1 ]; then usage; fi; shift
 			config_TargetRelease $1 || usage
 			;;
+		-s)
+			if [ $# -eq 1 ]; then usage; fi; shift
+			config_ServerName $1 || usage
+			;;
 		-t)
 			if [ $# -eq 1 ]; then usage; fi; shift
 			config_MailTo $1 || usage



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