I have a zip file which is compressed on a windows server and has the windows directory structure.
I am trying to uncompress the file on an ubuntu server with the command:
/tmp/temp » unzip -d /tmp/temp/temp backup.zip
The unzipping works fine, the directory structure is converted into a Linux based one automatically. But due to some reason whatsoever the exit code of the extract command is 1 and this is messing up my Jenkins job, which is not proceeding further.
inflating: /tmp/temp/temp/fs/site/wwwroot/vendor-a2341eb904.js
inflating: /tmp/temp/temp/fs/site/wwwroot/vendor-fc433e18b6.css
inflating: /tmp/temp/temp/fs/site/wwwroot/web.config
inflating: /tmp/temp/temp/meta
------------------------------------------------------------
/tmp/temp » echo $?
1
I even tested the archive to compare the CRC of the extracted file with the one in the archive and it seems to be allright:
testing: fs\site\wwwroot\vendor-fc433e18b6.css OK
testing: fs\site\wwwroot\web.config OK
testing: meta OK
No errors detected in compressed data of backup.zip.
------------------------------------------------------------
/tmp/temp » echo $?
0
Any idea what might be the cause of return code 1 in the unzip command?
BTW: I also tried to set +e
in my jenkins job to disregard the exit codes, but that didn't do any help.