bin/xbps-fetch: fix output when not using shasum mode

This commit is contained in:
Duncan Overbruck 2020-03-05 12:53:48 +01:00
parent 044f75450b
commit b0904b32d2
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35

View File

@ -163,7 +163,7 @@ main(int argc, char **argv)
} else { } else {
rv = 0; rv = 0;
} }
if (*digest) { if (shasum) {
print_digest(digest, SHA256_DIGEST_LENGTH); print_digest(digest, SHA256_DIGEST_LENGTH);
printf(" %s\n", filename); printf(" %s\n", filename);
} }