magiskboot: fix lzop detection

This commit is contained in:
osm0sis 2020-01-12 05:22:39 -04:00 committed by John Wu
parent 793f0b605c
commit a7435dad6d

View File

@ -563,11 +563,11 @@ void decompress(char *infile, const char *outfile) {
if (!strm) {
format_t type = check_fmt(buf, len);
fprintf(stderr, "Detected format: [%s]\n", fmt2name[type]);
if (!COMPRESSED(type))
LOGE("Input file is not a supported compressed type!\n");
fprintf(stderr, "Detected format: [%s]\n", fmt2name[type]);
/* If user does not provide outfile, infile has to be either
* <path>.[ext], or '-'. Outfile will be either <path> or '-'.
* If the input does not have proper format, abort */