replace backtick operator with run3
This commit is contained in:
@@ -7,6 +7,7 @@ use HTTP::Request;
|
||||
use LWP::UserAgent;
|
||||
use JSON::MaybeXS;
|
||||
use Hydra::Helper::CatalystUtils;
|
||||
use Hydra::Helper::Nix;
|
||||
use File::Temp;
|
||||
use POSIX qw(strftime);
|
||||
|
||||
@@ -115,9 +116,7 @@ sub fetchInput {
|
||||
print $fh encode_json \%refs;
|
||||
close $fh;
|
||||
system("jq -S . < $filename > $tempdir/github-refs-sorted.json");
|
||||
my $storePath = trim(qx{nix-store --add "$tempdir/github-refs-sorted.json"}
|
||||
or die "cannot copy path $filename to the Nix store.\n");
|
||||
chomp $storePath;
|
||||
my $storePath = addToStore("$tempdir/github-refs-sorted.json");
|
||||
my $timestamp = time;
|
||||
return { storePath => $storePath, revision => strftime "%Y%m%d%H%M%S", gmtime($timestamp) };
|
||||
}
|
||||
|
Reference in New Issue
Block a user