This commit is contained in:
2019-10-15 20:21:17 -07:00
parent f297d9d846
commit 7c96c474ee
3 changed files with 28 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -471,6 +471,27 @@ foreach ($files as $splFileInfo) {
}
// Create batch
$line = array();
if ($p['thumbs'] || $p['icons'] || $p['meta'] || $p['hash'] || $p['contents'] || $p['spotlight']) {
$parts = array();
$parts[] = $bin_php;
$parts[] = escapeshellarg(realpath("helper2.php"));
$parts[] = $i;
$parts[] = $passed_total;
$parts[] = escapeshellarg($pathname);
$parts[] = $splFileInfo->getType();
$parts[] = escapeshellarg($bpath);
$parts[] = $mytime;
$tcmd = implode(" ",$parts);
msg($tcmd);
$line[] = $tcmd;
}
// Check file can be read
if ($realpath && !is_readable($realpath)) {
@@ -487,6 +508,13 @@ foreach ($files as $splFileInfo) {
}
$batchfile = $tmpdir."/__batch.sh";
if (!empty($line)) {
file_put_contents($batchfile,implode("\n", $line));
msg("Writing batch to file");
}
echo ProgressBar::finish($wopt_clear);
// Thow permissions error