[Bug 267384] Make Mk/Scripts/do-users-groups.sh fail-fast instead of silently succeeding

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 03 May 2024 07:47:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267384

--- Comment #10 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=4280a82efe69f5dc77a67394f7bd36095c74cd6c

commit 4280a82efe69f5dc77a67394f7bd36095c74cd6c
Author:     Michael Osipov <michaelo@FreeBSD.org>
AuthorDate: 2023-11-22 11:30:32 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2024-05-03 07:44:53 +0000

    Mk/Scripts/do-users-groups.sh: Make users and groups creation fail-fast

    Fail fast when pw(8) fails to create a user or a group. Especially when it
is
    not the last command in the pre-install script then the exit code will be 0
and
    the failure will go unnoticed.

    PR:             267384
    Approved by:    jrm (mentor)
    Differential Revision:  https://reviews.freebsd.org/D42719

 Mk/Scripts/do-users-groups.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.