I have a zipped folder that contains .gz files like so:
<code>artifact.zip
|--- index.html.gz
|--- folder
|------ file.js.gz
</code>
<code>artifact.zip
|--- index.html.gz
|--- folder
|------ file.js.gz
</code>
artifact.zip
|--- index.html.gz
|--- folder
|------ file.js.gz
When I use unzip on my Mac machine, the .gz files remain zipped. But when I do it on linux through gitlab, the gzipped files are unzipped:
<code>dist
|--- index.html
|--- folder
|------ file.js
</code>
<code>dist
|--- index.html
|--- folder
|------ file.js
</code>
dist
|--- index.html
|--- folder
|------ file.js
I couldn’t find a way to prevent that in the doc: https://linux.die.net/man/1/unzip. I have to gzip every files after unzipping gzip -r .
1