extractTo($filePath, ['tx'], true); file_put_contents($fileInfoPath, $url); chmod($filePath, 0755); unlink($archivePath); fwrite(STDERR, " done.\n"); } // run Transifex CLI $args = array_map(function ($arg) { return escapeshellarg($arg); }, array_slice($argv, 1)); $result = null; passthru(escapeshellcmd("$filePath/tx") . ' ' . implode(' ', $args), $result); exit((int)$result);