tar extract zip archive from file or STDIN - discrepancy

30 Views Asked by At

Training to download and extract archive (zip archive, created by 7z) by

curl --output - "https://host.com/archive.zip" | tar -f - -C %dest_dir%

but archive extract is incomplete. Some compressed files and folders are missing in %dest_dir%. But when I perform

curl --output archive.zip "https://host.com/archive.zip" && tar -f archive.zip -C %dest_dir%

then the whole archive is extracted completely.

I suspect that antivirus silently delete some content, but AV log seems to be empty. Where could be a problem?

0

There are 0 best solutions below