git: 0adec3d7ec96 - main - freebsd-update: sort options alphabetically
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Sep 2025 19:14:50 UTC
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