From ce85b9dd19d55851cd831da8c2dfe4044fd946b1 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Sat, 24 Nov 2018 22:33:48 +0000 Subject: [PATCH] suppress script hash print if quiet --- zpm-script.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zpm-script.c b/zpm-script.c index a91f2ac..fac3612 100644 --- a/zpm-script.c +++ b/zpm-script.c @@ -259,7 +259,9 @@ int main(int ac, char **av){ } else if (!zpm_script_hash(&zpm, pkgid, phase, hash)) { fail = SOFT; } else if (scriptishash) { - printf("%s\n", hash); + if (!quiet) { + printf("%s\n", hash); + } } else { if (!output) { output = "-"; -- 2.40.0