-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
When attempting to extract a TAR archive using GNU Tar v1.30 when not overwriting an exception is raised:
$zippy = Zippy::load();
$archive = $zippy->open($archiveFilename);
$archive->extract(sys_get_temp_dir());
Alchemy\Zippy\Exception\RuntimeException
Unable to execute the following command '/usr/bin/tar' '-k' '--extract' '--file=/tmp/batch24e617b535.tar.gz' '--overwrite' '--gzip' '--directory' '/tmp' './14d2b6beb1.json' {output: /usr/bin/tar: '--overwrite' cannot be used with '--keep-old-files'
Try '/usr/bin/tar --help' or '/usr/bin/tar --usage' for more information.
I believe the problem stems from the default options for GNU Tar including --overwrite
which conflicts with -k
(or --keep-old-files
) which is added by default
ddebin
Metadata
Metadata
Assignees
Labels
No labels