Skip to content

Commit

Permalink
Merge pull request #20 from nlegoff/common-args
Browse files Browse the repository at this point in the history
Fix exiftool command when a mode is defined
  • Loading branch information
romainneutron committed Sep 15, 2014
2 parents 882228c + 6b64e47 commit d0d619c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/PHPExiftool/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ public function write($file, MetadataBag $metadatas, $destination = null)
$command .= ' -overwrite_original_in_place ' . $file;
}

$command .= ' -common_args' . $common_args;

if ('' !== $syncCommand = $this->getSyncCommand()) {
$command .= ' -execute -overwrite_original_in_place ' . $syncCommand . ' ' . $file;
}

$command .= ' -common_args' . $common_args;

$lines = explode("\n", $this->exiftool->executeCommand($command));
$lastLine = '';

Expand Down

0 comments on commit d0d619c

Please sign in to comment.