]> pd.if.org Git - zpackage/commitdiff
suppress script hash print if quiet
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 24 Nov 2018 22:33:48 +0000 (22:33 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 24 Nov 2018 22:33:48 +0000 (22:33 +0000)
zpm-script.c

index a91f2ac3195974c030a0fc5b28c9645e319feaf6..fac3612b8f9f2bcdd1ca6cecaa676dd0fe4552c6 100644 (file)
@@ -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 = "-";