Skip to content

Commit d756a85

Browse files
authored
Merge pull request #6 from hoshsadiq/improve-windows-support
Improve windows support
2 parents 09d6a58 + f49cd37 commit d756a85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

install-go.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
my($ARCH, $EXT) = ('amd64', 'tar.gz');
5656
my $OS;
5757
if ($^O eq 'linux' or $^O eq 'freebsd' or $^O eq 'darwin') { $OS = $^O }
58-
elsif ($^O eq 'msys' or $^O eq 'cygwin')
58+
elsif ($^O eq 'msys' or $^O eq 'cygwin' or $^O eq 'MSWin32')
5959
{
6060
$OS = 'windows';
6161
$EXT = 'zip';
@@ -233,7 +233,7 @@ sub install_go
233233
if ($EXT eq 'zip')
234234
{
235235
exe(qw(curl -L -s -o x.zip), $url);
236-
exe(qw(unzip x.zip go/bin/* go/pkg/* go/src/*));
236+
exe(qw(unzip x.zip go/bin/* go/pkg/**/* go/src/**/*));
237237
unlink 'x.zip';
238238
}
239239
else

0 commit comments

Comments
 (0)