Skip to content

Commit

Permalink
Fix directory with spaces failing command
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
S1SYPHOS committed Jul 1, 2021
1 parent 4832030 commit 39e9e79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Colorist.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ public static function exec_enabled(): bool

protected function convert(string $file): string
{
return sprintf(option('fundevogel.colorist.bin') . ' convert %s', $file);
return sprintf(option('fundevogel.colorist.bin') . ' convert "%s"', $file);
}

protected function save(string $file): string
{
return sprintf('%s', $file);
return sprintf('"%s"', $file);
}


Expand Down

0 comments on commit 39e9e79

Please sign in to comment.