This commit is contained in:
2019-10-08 01:54:04 -07:00
parent d255172a62
commit d86b4852f9
9 changed files with 14 additions and 15 deletions

View File

@@ -68,7 +68,7 @@ if (!is_dir($tmpdir)) { mkdir($tmpdir,0777,true); }
$stamp = date("Y-m-d_H-i-s", $mytime);
if (!isset($argv[1])) { echo "No input"; die; }
if (!isset($argv[1]) || $argv[1] == "") { echo "No input"; die; }
$zpath = realpath(@$argv[1]);
if ($p['bdest']) { $bdest = realpath($p['bdest']); } else { $bdest = "/Users/".get_current_user()."/Documents/Yuba/"; }
if (!is_dir($bdest)) { if (!mkdir($bdest)) { echo "Error creating directory: ".$bdest; die; } }
@@ -569,10 +569,10 @@ if ($p['thumbs']) {
$pathname = $array[1];
$tcmd = $bin_php." ".$helper." thumbs ".$fid." ".escapeshellarg($pathname)." ".escapeshellarg($bpath)." ".$mytime."; echo ".ProgressBar::next();
msg($tcmd);
$line[] = $tcmd;
$tline[] = $tcmd;
}
file_put_contents($batchfile,implode("\n", $line));
file_put_contents($batchfile,implode("\n", $tline));
echo ProgressBar::finish($wopt_clear);
echo ProgressBar::start($passed_file,"Running thumb batch (".stepString().")");
@@ -600,10 +600,10 @@ if ($p['icons']) {
$pathname = $array[1];
$icmd = $bin_php." ".$helper." icons ".$fid." ".escapeshellarg($pathname)." ".escapeshellarg($bpath)." ".$mytime."; echo ".ProgressBar::next();
msg($icmd);
$line[] = $icmd;
$iline[] = $icmd;
}
file_put_contents($batchfile,implode("\n", $line));
file_put_contents($batchfile,implode("\n", $iline));
echo ProgressBar::finish($wopt_clear);
echo ProgressBar::start($passed_file,"Running icon batch (".stepString().")");