diff --git a/script/curl.pl b/script/curl.pl index 837f8ee..2c0f3d6 100644 --- a/script/curl.pl +++ b/script/curl.pl @@ -177,7 +177,7 @@ ( $req ) } } - my $target = File::Spec->catfile( $target_directory, $filename ); + my $target = File::Spec->rel2abs( $target_directory, $filename ); if( -e $target ) { msg( "$target already exists, resuming" ); $req->headers->{Range} = "bytes=" . -s( $filename ). "-";