binext: use realpath

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/563/head
Varun Patil 2023-04-10 19:38:07 -07:00
parent 3ee8e07bd3
commit 6d26fadfe6
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class BinExt
$cmd = implode(' ', array_merge(self::getExiftool(), ['-ver']));
$out = shell_exec($cmd);
if (!$out) {
throw new \Exception('failed to run exiftool');
throw new \Exception("failed to run exiftool: {$cmd}");
}
$version = trim($out);
@ -64,7 +64,7 @@ class BinExt
public static function getExiftool(): array
{
if (Util::getSystemConfig('memories.exiftool_no_local')) {
return ['perl', __DIR__.'/../exiftool-bin/exiftool/exiftool'];
return ['perl', realpath(__DIR__.'/../exiftool-bin/exiftool/exiftool')];
}
return [self::getExiftoolPBin()];