]> pd.if.org Git - zpackage/blobdiff - zpm-script.c
suppress script hash print if quiet
[zpackage] / 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 = "-";