Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
audit: fix quiet
Baptiste Daroussin committed 5 years ago
commit f399093ac62c4405814edb78f640ba630e277a77
parent 74fd3389a4ee2611603ee8658d2f3b4182ace73e
1 file changed +4 -3
modified src/audit.c
@@ -471,9 +471,10 @@ exec_audit(int argc, char **argv)
		if (ret == EPKG_END && vuln == 0)
			ret = EXIT_SUCCESS;

-
		if (top == NULL && !quiet) {
-
			printf("%u problem(s) in %u installed package(s) found.\n",
-
			   affected, vuln);
+
		if (top == NULL) {
+
			if (!quiet)
+
				printf("%u problem(s) in %u installed package(s) found.\n",
+
				   affected, vuln);
	
		} else {
			ucl_object_insert_key(top, ucl_object_fromint(vuln), "pkg_count", 9, false );