Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg-checksum: actually return a useful code
Baptiste Daroussin committed 1 month ago
commit 0273291e0ed61133b51008d454b08f9b079b1dc2
parent cdf3254
1 file changed +2 -1
modified scripts/periodic/460.pkg-checksum.in
@@ -29,7 +29,7 @@ checksum_pkg() {
}

checksum_pkg_all() {
-
    local rc
+
    local rc=0

    # We always check the checksums for the host system, but only
    # print a banner line if we're also checking on any chroots or
@@ -42,6 +42,7 @@ checksum_pkg_all() {
    fi

    checksum_pkg ''
+
    [ $? -eq 1 ] && rc=1

    for c in $security_status_pkg_checksum_chroots ; do
	echo