Skip to content

Commit

Permalink
remove reference to externalPrograms{tar}.
Browse files Browse the repository at this point in the history
  • Loading branch information
pstaabp committed Oct 24, 2023
1 parent b258466 commit c376821
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/download-OPL-metadata-release.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use File::Fetch;
use File::Copy;
use File::Path;
use Archive::Extract;
use Mojo::File;
use JSON;

Expand Down Expand Up @@ -53,8 +54,9 @@ BEGIN
my $releaseFile = $releaseDownloadFF->fetch(to => $ce->{webworkDirs}{tmp}) or die $releaseDownloadFF->error;
say 'Downloaded release archive, now extracting.';

`$ce->{externalPrograms}{tar} xzf $releaseFile -C $ce->{webworkDirs}{tmp}`;
die "There was an error extracting the release: $!" if $?;
my $arch = Archive::Extract->new(archive => "$releaseFile");
my $ok = $arch->extract(to => $ce->{webworkDirs}{tmp});
die "There was an error extracting the release: $arch->error" unless $ok;

# Copy the json files into htdocs.
for (glob("$ce->{webworkDirs}{tmp}/webwork-open-problem-library/JSON-SAVED/*.json")) {
Expand Down

0 comments on commit c376821

Please sign in to comment.