Skip to content

Commit

Permalink
Merge pull request #16 from darrynten/dev
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
darrynten committed Mar 19, 2017
2 parents ba385ac + 1687eff commit e88e89e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Filters/Filter/Fred/FredBaseFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
abstract class FredBaseFilter extends BaseFilter
{
// Path to the bash files
const BIN_FOLDER = __DIR__.'/../../../../vendor/mxnr/imagic-scripts/bin';
const FRED_COMPOSER_PACKAGE = 'mxnr/imagic-scripts';

/**
* The command switch map
Expand Down Expand Up @@ -121,7 +121,8 @@ public function render()
$tempPathIn = stream_get_meta_data($tempFileIn)['uri'];

// Build the command - first is the command name
$execute = sprintf('%s ', self::BIN_FOLDER . '/' . $this->command);
$execute = sprintf('%s ', getcwd() . '/vendor/' . self::FRED_COMPOSER_PACKAGE . '/bin/' . $this->command);

// Then each switch
foreach ($this->switchMap as $key => $value) {
$string = sprintf('-%s %s ', $value, $this->{$key});
Expand Down

0 comments on commit e88e89e

Please sign in to comment.