Merge pull request #2058 from progger/stage_file_fix

Fixed touch md5 file path
This commit is contained in:
David Anderson 2018-10-10 12:49:33 -07:00 committed by GitHub
commit 1af87de831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -69,7 +69,6 @@ function stage_file($path) {
if (!file_exists($path)) error_exit("no such file: $path\n");
$file = basename($path);
$dl_path = dir_hier_path($file, $download_dir, $fanout);
$dl_md5_path = "$dl_path.md5";
if ($verbose) {
echo "staging $file to $dl_path\n";
@ -93,7 +92,7 @@ function stage_file($path) {
if (!$ret) error_exit(" copy failed\n");
if ($verbose) echo " moved file\n";
}
touch("$path.md5");
touch("$dl_path.md5");
break;
case -1:
error_exit("