执行脚本程序出现gzip:stdin:not in gzip format的解决方法

今天在执行zero_imager的镜像打包脚本时,出现了下面问题:

gzip: stdin: not in gzip format

tar: Child returned status 1

tar: Error is not recoverable: exiting now

原因是解压文件系统的压缩包时使用了z指令(压缩包没有用gzip格式压缩)

将z指令去掉就可以了

原文地址:https://www.cnblogs.com/zhq-blog/p/8944479.html