From: Nathan Wagner Date: Sat, 24 Nov 2018 22:33:48 +0000 (+0000) Subject: suppress script hash print if quiet X-Git-Tag: v0.2.17~9 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=ce85b9dd19d55851cd831da8c2dfe4044fd946b1 suppress script hash print if quiet --- 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 = "-";