Open diggy opened 7 years ago
@ethanclevenger91 thanks for this plugin :)
The current test for GS is failing for me, even though the package is installed:
if(`which gs`) { return true; } return false;
This SO answer suggested ghostscript might be writing the data to STDERR instead of STDOUT.
Following mod to your plugin fixes my issue:
$retval = shell_exec( 'which gs --version 2>&1' ); if ( $retval == 0 ) { return true; } return false;
Maybe implement an elseif?
elseif
Looks like there are some more things referenced here that could be causing inconsistencies. I'll patch to cover some of these cases.
@ethanclevenger91 thanks for this plugin :)
The current test for GS is failing for me, even though the package is installed:
This SO answer suggested ghostscript might be writing the data to STDERR instead of STDOUT.
Following mod to your plugin fixes my issue:
Maybe implement an
elseif
?