File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ sub parse_params
71
71
error(" Unknown parameter \" $arg \" . Run -h for help.\n " );
72
72
}
73
73
$$opts {tmp } = exists ($$opts {keep_files }) ? $$opts {keep_files } : tempdir(CLEANUP => 1);
74
- if ($^O =~ / ^msys/ ) {
74
+ if ($^O =~ / ^(cygwin| msys) / ) {
75
75
$$opts {tmp } = cygpath($$opts {tmp });
76
76
}
77
77
if ( $$opts {keep_files } ) { cmd(" mkdir -p $$opts {keep_files}" ); }
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ sub cygpath {
104
104
sub safe_tempdir
105
105
{
106
106
my $dir = tempdir(CLEANUP => 1);
107
- if ($^O =~ / ^msys/ ) {
107
+ if ($^O =~ / ^(cygwin| msys) / ) {
108
108
$dir = cygpath($dir );
109
109
}
110
110
return $dir ;
@@ -129,7 +129,7 @@ sub parse_params
129
129
$$opts {path } = $FindBin::RealBin ;
130
130
$$opts {bin } = $FindBin::RealBin ;
131
131
$$opts {bin } =~ s { /test/?$} {} ;
132
- if ($^O =~ / ^msys/ ) {
132
+ if ($^O =~ / ^(cygwin| msys) / ) {
133
133
$$opts {path } = cygpath($$opts {path });
134
134
$$opts {bin } = cygpath($$opts {bin });
135
135
}
@@ -1085,7 +1085,7 @@ sub test_index
1085
1085
# Tabix and custom index names
1086
1086
_cmd(" $$opts {bin}/tabix -fp vcf $$opts {tmp}/index.vcf.gz" );
1087
1087
my $wtmp = $$opts {tmp };
1088
- if ($^O =~ / ^msys/ ) {
1088
+ if ($^O =~ / ^(cygwin| msys) / ) {
1089
1089
$wtmp =~ s /\/ / \\\\ / g ;
1090
1090
}
1091
1091
test_cmd($opts ,out => ' tabix.out' ,cmd => " $$opts {bin}/tabix $wtmp /index.vcf.gz##idx##$wtmp /index.vcf.gz.tbi 1:10000060-10000060" );
You can’t perform that action at this time.
0 commit comments